mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
qemu_capabilities: Add QEMU_CAPS_QUERY_CURRENT_MACHINE
QEMU commit 46ea94ca9cf ("qmp: query-current-machine with wakeup-suspend-support") added a new QMP command called 'query-current-machine' that retrieves guest parameters that can vary in the same machine model (e.g. ACPI support for x86 VMs depends on the '--no-acpi' option). Currently, this API has a single flag, 'wakeup-suspend-support', that indicates whether the guest has the capability of waking up from suspended state. Introduce a libvirt capability that reflects whether qemu has the monitor command. Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
9470815d54
commit
dca1b1d007
@ -524,6 +524,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
||||
"scsi-disk.device_id",
|
||||
"virtio-pci-non-transitional",
|
||||
"overcommit",
|
||||
"query-current-machine",
|
||||
);
|
||||
|
||||
|
||||
@ -969,6 +970,7 @@ struct virQEMUCapsStringFlags virQEMUCapsCommands[] = {
|
||||
{ "query-cpus-fast", QEMU_CAPS_QUERY_CPUS_FAST },
|
||||
{ "qom-list-properties", QEMU_CAPS_QOM_LIST_PROPERTIES },
|
||||
{ "blockdev-del", QEMU_CAPS_BLOCKDEV_DEL },
|
||||
{ "query-current-machine", QEMU_CAPS_QUERY_CURRENT_MACHINE },
|
||||
};
|
||||
|
||||
struct virQEMUCapsStringFlags virQEMUCapsMigration[] = {
|
||||
|
@ -506,6 +506,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
||||
QEMU_CAPS_SCSI_DISK_DEVICE_ID, /* 'device_id' property of scsi disk */
|
||||
QEMU_CAPS_VIRTIO_PCI_TRANSITIONAL, /* virtio *-pci-{non-}transitional devices */
|
||||
QEMU_CAPS_OVERCOMMIT, /* -overcommit */
|
||||
QEMU_CAPS_QUERY_CURRENT_MACHINE, /* query-current-machine command */
|
||||
|
||||
QEMU_CAPS_LAST /* this must always be the last item */
|
||||
} virQEMUCapsFlags;
|
||||
|
@ -163,6 +163,7 @@
|
||||
<flag name='scsi-disk.device_id'/>
|
||||
<flag name='virtio-pci-non-transitional'/>
|
||||
<flag name='overcommit'/>
|
||||
<flag name='query-current-machine'/>
|
||||
<version>3001091</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>0</microcodeVersion>
|
||||
|
@ -163,6 +163,7 @@
|
||||
<flag name='scsi-disk.device_id'/>
|
||||
<flag name='virtio-pci-non-transitional'/>
|
||||
<flag name='overcommit'/>
|
||||
<flag name='query-current-machine'/>
|
||||
<version>3001091</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>0</microcodeVersion>
|
||||
|
@ -201,6 +201,7 @@
|
||||
<flag name='scsi-disk.device_id'/>
|
||||
<flag name='virtio-pci-non-transitional'/>
|
||||
<flag name='overcommit'/>
|
||||
<flag name='query-current-machine'/>
|
||||
<version>3001050</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100758</microcodeVersion>
|
||||
|
Loading…
x
Reference in New Issue
Block a user