mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-30 16:35:24 +00:00
qemu: deprecate QEMU_CAPS_DRIVE_AIO
Implied by QEMU >= 1.2.0. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
3ebce7450a
commit
0bfb93fff2
@ -3631,7 +3631,6 @@ static qemuMonitorCallbacks callbacks = {
|
|||||||
static void
|
static void
|
||||||
virQEMUCapsInitQMPBasic(virQEMUCapsPtr qemuCaps)
|
virQEMUCapsInitQMPBasic(virQEMUCapsPtr qemuCaps)
|
||||||
{
|
{
|
||||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_AIO);
|
|
||||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_CHARDEV_SPICEVMC);
|
virQEMUCapsSet(qemuCaps, QEMU_CAPS_CHARDEV_SPICEVMC);
|
||||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_CACHE_DIRECTSYNC);
|
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_CACHE_DIRECTSYNC);
|
||||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_NO_SHUTDOWN);
|
virQEMUCapsSet(qemuCaps, QEMU_CAPS_NO_SHUTDOWN);
|
||||||
|
@ -119,7 +119,7 @@ typedef enum {
|
|||||||
|
|
||||||
/* 50 */
|
/* 50 */
|
||||||
QEMU_CAPS_HDA_DUPLEX, /* -device hda-duplex */
|
QEMU_CAPS_HDA_DUPLEX, /* -device hda-duplex */
|
||||||
QEMU_CAPS_DRIVE_AIO, /* -drive aio= supported */
|
X_QEMU_CAPS_DRIVE_AIO, /* -drive aio= supported */
|
||||||
X_QEMU_CAPS_PCI_MULTIBUS, /* bus=pci.0 vs bus=pci */
|
X_QEMU_CAPS_PCI_MULTIBUS, /* bus=pci.0 vs bus=pci */
|
||||||
QEMU_CAPS_PCI_BOOTINDEX, /* pci-assign.bootindex */
|
QEMU_CAPS_PCI_BOOTINDEX, /* pci-assign.bootindex */
|
||||||
QEMU_CAPS_CCID_EMULATED, /* -device ccid-card-emulated */
|
QEMU_CAPS_CCID_EMULATED, /* -device ccid-card-emulated */
|
||||||
|
@ -1382,13 +1382,6 @@ qemuCheckDiskConfig(virDomainDiskDefPtr disk,
|
|||||||
_("detect_zeroes is not supported by this QEMU binary"));
|
_("detect_zeroes is not supported by this QEMU binary"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (disk->iomode &&
|
|
||||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DRIVE_AIO)) {
|
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
|
||||||
_("disk aio mode not supported with this QEMU binary"));
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (disk->serial &&
|
if (disk->serial &&
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
<flag name='spice'/>
|
<flag name='spice'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='pci-bootindex'/>
|
<flag name='pci-bootindex'/>
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
<flag name='spice'/>
|
<flag name='spice'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='pci-bootindex'/>
|
<flag name='pci-bootindex'/>
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
<flag name='spice'/>
|
<flag name='spice'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='pci-bootindex'/>
|
<flag name='pci-bootindex'/>
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
<flag name='spice'/>
|
<flag name='spice'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='pci-bootindex'/>
|
<flag name='pci-bootindex'/>
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
<flag name='kvm'/>
|
<flag name='kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
<flag name='virtio-tx-alg'/>
|
<flag name='virtio-tx-alg'/>
|
||||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
<flag name='kvm'/>
|
<flag name='kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
<flag name='virtio-tx-alg'/>
|
<flag name='virtio-tx-alg'/>
|
||||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
<usedQMP/>
|
<usedQMP/>
|
||||||
<flag name='kvm'/>
|
<flag name='kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
<flag name='virtio-tx-alg'/>
|
<flag name='virtio-tx-alg'/>
|
||||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
<flag name='spice'/>
|
<flag name='spice'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='pci-bootindex'/>
|
<flag name='pci-bootindex'/>
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
<usedQMP/>
|
<usedQMP/>
|
||||||
<flag name='kvm'/>
|
<flag name='kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
<flag name='virtio-tx-alg'/>
|
<flag name='virtio-tx-alg'/>
|
||||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
<flag name='kvm'/>
|
<flag name='kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
<flag name='virtio-tx-alg'/>
|
<flag name='virtio-tx-alg'/>
|
||||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
<flag name='kvm'/>
|
<flag name='kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
<flag name='virtio-tx-alg'/>
|
<flag name='virtio-tx-alg'/>
|
||||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
<usedQMP/>
|
<usedQMP/>
|
||||||
<flag name='enable-kvm'/>
|
<flag name='enable-kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
<flag name='virtio-tx-alg'/>
|
<flag name='virtio-tx-alg'/>
|
||||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
<flag name='spice'/>
|
<flag name='spice'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
<flag name='spice'/>
|
<flag name='spice'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='pci-bootindex'/>
|
<flag name='pci-bootindex'/>
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
<flag name='spice'/>
|
<flag name='spice'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='pci-bootindex'/>
|
<flag name='pci-bootindex'/>
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
<flag name='kvm'/>
|
<flag name='kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
<flag name='kvm'/>
|
<flag name='kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
<flag name='virtio-tx-alg'/>
|
<flag name='virtio-tx-alg'/>
|
||||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
<flag name='spice'/>
|
<flag name='spice'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='pci-bootindex'/>
|
<flag name='pci-bootindex'/>
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
<usedQMP/>
|
<usedQMP/>
|
||||||
<flag name='kvm'/>
|
<flag name='kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
<flag name='virtio-tx-alg'/>
|
<flag name='virtio-tx-alg'/>
|
||||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
<flag name='spice'/>
|
<flag name='spice'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='pci-bootindex'/>
|
<flag name='pci-bootindex'/>
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
<usedQMP/>
|
<usedQMP/>
|
||||||
<flag name='kvm'/>
|
<flag name='kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
<flag name='virtio-tx-alg'/>
|
<flag name='virtio-tx-alg'/>
|
||||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
<flag name='spice'/>
|
<flag name='spice'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='pci-bootindex'/>
|
<flag name='pci-bootindex'/>
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
<flag name='kvm'/>
|
<flag name='kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
<flag name='virtio-tx-alg'/>
|
<flag name='virtio-tx-alg'/>
|
||||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
<usedQMP/>
|
<usedQMP/>
|
||||||
<flag name='kvm'/>
|
<flag name='kvm'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='chardev-spicevmc'/>
|
<flag name='chardev-spicevmc'/>
|
||||||
<flag name='virtio-tx-alg'/>
|
<flag name='virtio-tx-alg'/>
|
||||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
<flag name='spice'/>
|
<flag name='spice'/>
|
||||||
<flag name='boot-index'/>
|
<flag name='boot-index'/>
|
||||||
<flag name='hda-duplex'/>
|
<flag name='hda-duplex'/>
|
||||||
<flag name='drive-aio'/>
|
|
||||||
<flag name='pci-bootindex'/>
|
<flag name='pci-bootindex'/>
|
||||||
<flag name='ccid-emulated'/>
|
<flag name='ccid-emulated'/>
|
||||||
<flag name='ccid-passthru'/>
|
<flag name='ccid-passthru'/>
|
||||||
|
@ -836,7 +836,6 @@ mymain(void)
|
|||||||
QEMU_CAPS_KVM,
|
QEMU_CAPS_KVM,
|
||||||
QEMU_CAPS_ENABLE_KVM,
|
QEMU_CAPS_ENABLE_KVM,
|
||||||
QEMU_CAPS_PIIX3_USB_UHCI,
|
QEMU_CAPS_PIIX3_USB_UHCI,
|
||||||
QEMU_CAPS_DRIVE_AIO,
|
|
||||||
QEMU_CAPS_CCID_PASSTHRU,
|
QEMU_CAPS_CCID_PASSTHRU,
|
||||||
QEMU_CAPS_CHARDEV_SPICEVMC,
|
QEMU_CAPS_CHARDEV_SPICEVMC,
|
||||||
QEMU_CAPS_SPICE,
|
QEMU_CAPS_SPICE,
|
||||||
@ -1032,8 +1031,7 @@ mymain(void)
|
|||||||
QEMU_CAPS_SCSI_DISK_WWN);
|
QEMU_CAPS_SCSI_DISK_WWN);
|
||||||
DO_TEST("disk-sata-device",
|
DO_TEST("disk-sata-device",
|
||||||
QEMU_CAPS_ICH9_AHCI);
|
QEMU_CAPS_ICH9_AHCI);
|
||||||
DO_TEST("disk-aio",
|
DO_TEST("disk-aio", NONE);
|
||||||
QEMU_CAPS_DRIVE_AIO);
|
|
||||||
DO_TEST("disk-source-pool", NONE);
|
DO_TEST("disk-source-pool", NONE);
|
||||||
DO_TEST("disk-source-pool-mode", NONE);
|
DO_TEST("disk-source-pool-mode", NONE);
|
||||||
DO_TEST("disk-ioeventfd",
|
DO_TEST("disk-ioeventfd",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user