mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemu: add capability detection for query-cpus-fast
Detect whether QEMU supports the QMP query-cpus-fast API and set QEMU_CAPS_QUERY_CPUS_FAST in this case. Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Acked-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
0d6e834103
commit
5cff7b7db7
@ -469,6 +469,9 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
|||||||
"qcow2-luks",
|
"qcow2-luks",
|
||||||
"pcie-pci-bridge",
|
"pcie-pci-bridge",
|
||||||
"seccomp-blacklist",
|
"seccomp-blacklist",
|
||||||
|
|
||||||
|
/* 290 */
|
||||||
|
"query-cpus-fast",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -979,6 +982,7 @@ struct virQEMUCapsStringFlags virQEMUCapsCommands[] = {
|
|||||||
{ "query-cpu-model-expansion", QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION },
|
{ "query-cpu-model-expansion", QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION },
|
||||||
{ "query-cpu-definitions", QEMU_CAPS_QUERY_CPU_DEFINITIONS },
|
{ "query-cpu-definitions", QEMU_CAPS_QUERY_CPU_DEFINITIONS },
|
||||||
{ "query-named-block-nodes", QEMU_CAPS_QUERY_NAMED_BLOCK_NODES },
|
{ "query-named-block-nodes", QEMU_CAPS_QUERY_NAMED_BLOCK_NODES },
|
||||||
|
{ "query-cpus-fast", QEMU_CAPS_QUERY_CPUS_FAST },
|
||||||
};
|
};
|
||||||
|
|
||||||
struct virQEMUCapsStringFlags virQEMUCapsMigration[] = {
|
struct virQEMUCapsStringFlags virQEMUCapsMigration[] = {
|
||||||
|
@ -454,6 +454,9 @@ typedef enum {
|
|||||||
QEMU_CAPS_DEVICE_PCIE_PCI_BRIDGE, /* -device pcie-pci-bridge */
|
QEMU_CAPS_DEVICE_PCIE_PCI_BRIDGE, /* -device pcie-pci-bridge */
|
||||||
QEMU_CAPS_SECCOMP_BLACKLIST, /* -sandbox.elevateprivileges */
|
QEMU_CAPS_SECCOMP_BLACKLIST, /* -sandbox.elevateprivileges */
|
||||||
|
|
||||||
|
/* 290 */
|
||||||
|
QEMU_CAPS_QUERY_CPUS_FAST, /* query-cpus-fast command */
|
||||||
|
|
||||||
QEMU_CAPS_LAST /* this must always be the last item */
|
QEMU_CAPS_LAST /* this must always be the last item */
|
||||||
} virQEMUCapsFlags;
|
} virQEMUCapsFlags;
|
||||||
|
|
||||||
|
@ -155,6 +155,7 @@
|
|||||||
<flag name='qcow2-luks'/>
|
<flag name='qcow2-luks'/>
|
||||||
<flag name='pcie-pci-bridge'/>
|
<flag name='pcie-pci-bridge'/>
|
||||||
<flag name='seccomp-blacklist'/>
|
<flag name='seccomp-blacklist'/>
|
||||||
|
<flag name='query-cpus-fast'/>
|
||||||
<version>2011090</version>
|
<version>2011090</version>
|
||||||
<kvmVersion>0</kvmVersion>
|
<kvmVersion>0</kvmVersion>
|
||||||
<microcodeVersion>342346</microcodeVersion>
|
<microcodeVersion>342346</microcodeVersion>
|
||||||
|
@ -152,6 +152,7 @@
|
|||||||
<flag name='dump-completed'/>
|
<flag name='dump-completed'/>
|
||||||
<flag name='qcow2-luks'/>
|
<flag name='qcow2-luks'/>
|
||||||
<flag name='seccomp-blacklist'/>
|
<flag name='seccomp-blacklist'/>
|
||||||
|
<flag name='query-cpus-fast'/>
|
||||||
<version>2011090</version>
|
<version>2011090</version>
|
||||||
<kvmVersion>0</kvmVersion>
|
<kvmVersion>0</kvmVersion>
|
||||||
<microcodeVersion>419215</microcodeVersion>
|
<microcodeVersion>419215</microcodeVersion>
|
||||||
|
@ -117,6 +117,7 @@
|
|||||||
<flag name='virtio-tablet-ccw'/>
|
<flag name='virtio-tablet-ccw'/>
|
||||||
<flag name='qcow2-luks'/>
|
<flag name='qcow2-luks'/>
|
||||||
<flag name='seccomp-blacklist'/>
|
<flag name='seccomp-blacklist'/>
|
||||||
|
<flag name='query-cpus-fast'/>
|
||||||
<version>2011090</version>
|
<version>2011090</version>
|
||||||
<kvmVersion>0</kvmVersion>
|
<kvmVersion>0</kvmVersion>
|
||||||
<microcodeVersion>0</microcodeVersion>
|
<microcodeVersion>0</microcodeVersion>
|
||||||
|
@ -193,6 +193,7 @@
|
|||||||
<flag name='qcow2-luks'/>
|
<flag name='qcow2-luks'/>
|
||||||
<flag name='pcie-pci-bridge'/>
|
<flag name='pcie-pci-bridge'/>
|
||||||
<flag name='seccomp-blacklist'/>
|
<flag name='seccomp-blacklist'/>
|
||||||
|
<flag name='query-cpus-fast'/>
|
||||||
<version>2011090</version>
|
<version>2011090</version>
|
||||||
<kvmVersion>0</kvmVersion>
|
<kvmVersion>0</kvmVersion>
|
||||||
<microcodeVersion>390060</microcodeVersion>
|
<microcodeVersion>390060</microcodeVersion>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user