mirror of https://gitee.com/openkylin/libvirt.git
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",
|
||||
"pcie-pci-bridge",
|
||||
"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-definitions", QEMU_CAPS_QUERY_CPU_DEFINITIONS },
|
||||
{ "query-named-block-nodes", QEMU_CAPS_QUERY_NAMED_BLOCK_NODES },
|
||||
{ "query-cpus-fast", QEMU_CAPS_QUERY_CPUS_FAST },
|
||||
};
|
||||
|
||||
struct virQEMUCapsStringFlags virQEMUCapsMigration[] = {
|
||||
|
|
|
@ -454,6 +454,9 @@ typedef enum {
|
|||
QEMU_CAPS_DEVICE_PCIE_PCI_BRIDGE, /* -device pcie-pci-bridge */
|
||||
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 */
|
||||
} virQEMUCapsFlags;
|
||||
|
||||
|
|
|
@ -155,6 +155,7 @@
|
|||
<flag name='qcow2-luks'/>
|
||||
<flag name='pcie-pci-bridge'/>
|
||||
<flag name='seccomp-blacklist'/>
|
||||
<flag name='query-cpus-fast'/>
|
||||
<version>2011090</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>342346</microcodeVersion>
|
||||
|
|
|
@ -152,6 +152,7 @@
|
|||
<flag name='dump-completed'/>
|
||||
<flag name='qcow2-luks'/>
|
||||
<flag name='seccomp-blacklist'/>
|
||||
<flag name='query-cpus-fast'/>
|
||||
<version>2011090</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>419215</microcodeVersion>
|
||||
|
|
|
@ -117,6 +117,7 @@
|
|||
<flag name='virtio-tablet-ccw'/>
|
||||
<flag name='qcow2-luks'/>
|
||||
<flag name='seccomp-blacklist'/>
|
||||
<flag name='query-cpus-fast'/>
|
||||
<version>2011090</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>0</microcodeVersion>
|
||||
|
|
|
@ -193,6 +193,7 @@
|
|||
<flag name='qcow2-luks'/>
|
||||
<flag name='pcie-pci-bridge'/>
|
||||
<flag name='seccomp-blacklist'/>
|
||||
<flag name='query-cpus-fast'/>
|
||||
<version>2011090</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>390060</microcodeVersion>
|
||||
|
|
Loading…
Reference in New Issue