mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: caps: Always assume QEMU_CAPS_DEVICE_TRAY_MOVED
The event was added by qemu commit 6f382ed226f3 released in v1.1. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
8c191a9061
commit
850bb78a6e
@ -989,7 +989,6 @@ struct virQEMUCapsStringFlags virQEMUCapsMigration[] = {
|
||||
struct virQEMUCapsStringFlags virQEMUCapsEvents[] = {
|
||||
{ "MIGRATION", QEMU_CAPS_MIGRATION_EVENT },
|
||||
{ "VSERPORT_CHANGE", QEMU_CAPS_VSERPORT_CHANGE },
|
||||
{ "DEVICE_TRAY_MOVED", QEMU_CAPS_DEVICE_TRAY_MOVED },
|
||||
{ "BLOCK_WRITE_THRESHOLD", QEMU_CAPS_BLOCK_WRITE_THRESHOLD },
|
||||
{ "DUMP_COMPLETED", QEMU_CAPS_DUMP_COMPLETED },
|
||||
};
|
||||
|
@ -356,7 +356,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
||||
|
||||
/* 220 */
|
||||
QEMU_CAPS_DEVICE_PXB_PCIE, /* -device pxb-pcie */
|
||||
QEMU_CAPS_DEVICE_TRAY_MOVED, /* DEVICE_TRAY_MOVED event */
|
||||
X_QEMU_CAPS_DEVICE_TRAY_MOVED, /* DEVICE_TRAY_MOVED event */
|
||||
QEMU_CAPS_NEC_USB_XHCI_PORTS, /* -device nec-usb-xhci.p3 ports setting */
|
||||
QEMU_CAPS_VIRTIO_SCSI_IOTHREAD, /* virtio-scsi-{pci,ccw}.iothread */
|
||||
QEMU_CAPS_NAME_GUEST, /* -name guest= */
|
||||
|
@ -283,9 +283,8 @@ qemuDomainChangeMediaLegacy(virQEMUDriverPtr driver,
|
||||
if (qemuDomainObjExitMonitor(driver, vm) < 0)
|
||||
goto cleanup;
|
||||
|
||||
/* If the tray is present and tray change event is supported wait for it to open. */
|
||||
if (!force && diskPriv->tray &&
|
||||
virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_DEVICE_TRAY_MOVED)) {
|
||||
/* If the tray is present wait for it to open. */
|
||||
if (!force && diskPriv->tray) {
|
||||
rc = qemuHotplugWaitForTrayEject(vm, disk);
|
||||
if (rc < 0)
|
||||
goto cleanup;
|
||||
|
@ -83,7 +83,6 @@
|
||||
<flag name='e1000'/>
|
||||
<flag name='virtio-net'/>
|
||||
<flag name='qxl.vram64_size_mb'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='vhost-scsi'/>
|
||||
<flag name='query-cpu-definitions'/>
|
||||
|
@ -88,7 +88,6 @@
|
||||
<flag name='e1000'/>
|
||||
<flag name='virtio-net'/>
|
||||
<flag name='qxl.vram64_size_mb'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='vhost-scsi'/>
|
||||
<flag name='query-cpu-definitions'/>
|
||||
|
@ -90,7 +90,6 @@
|
||||
<flag name='e1000'/>
|
||||
<flag name='virtio-net'/>
|
||||
<flag name='qxl.vram64_size_mb'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='vhost-scsi'/>
|
||||
<flag name='query-cpu-definitions'/>
|
||||
|
@ -103,7 +103,6 @@
|
||||
<flag name='vserport-change-event'/>
|
||||
<flag name='qxl.vram64_size_mb'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
|
@ -98,7 +98,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -93,7 +93,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -66,7 +66,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
|
@ -126,7 +126,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -66,7 +66,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
|
@ -126,7 +126,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -98,7 +98,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -93,7 +93,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -66,7 +66,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
|
@ -124,7 +124,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -116,7 +116,6 @@
|
||||
<flag name='qxl.vram64_size_mb'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -120,7 +120,6 @@
|
||||
<flag name='qxl.vram64_size_mb'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -102,7 +102,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -95,7 +95,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -126,7 +126,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -68,7 +68,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
|
@ -126,7 +126,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -68,7 +68,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
|
@ -126,7 +126,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -93,7 +93,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -66,7 +66,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
|
@ -126,7 +126,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -92,7 +92,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -56,7 +56,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
|
@ -56,7 +56,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
<flag name='tls-creds-x509'/>
|
||||
|
@ -68,7 +68,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
<flag name='drive-detect-zeroes'/>
|
||||
|
@ -125,7 +125,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -93,7 +93,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -125,7 +125,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -99,7 +99,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -99,7 +99,6 @@
|
||||
<flag name='chardev-logfile'/>
|
||||
<flag name='debug-threads'/>
|
||||
<flag name='secret'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
@ -124,7 +124,6 @@
|
||||
<flag name='secret'/>
|
||||
<flag name='pxb'/>
|
||||
<flag name='pxb-pcie'/>
|
||||
<flag name='device-tray-moved-event'/>
|
||||
<flag name='nec-usb-xhci-ports'/>
|
||||
<flag name='virtio-scsi-pci.iothread'/>
|
||||
<flag name='name-guest'/>
|
||||
|
Loading…
Reference in New Issue
Block a user