mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
qemu: deprecate QEMU_CAPS_DRIVE_CACHE_UNSAFE
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
fe35b1ad64
commit
5b2c3d404e
@ -3626,7 +3626,6 @@ static qemuMonitorCallbacks callbacks = {
|
||||
static void
|
||||
virQEMUCapsInitQMPBasic(virQEMUCapsPtr qemuCaps)
|
||||
{
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_CACHE_UNSAFE);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_FSDEV_READONLY);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_COPY_ON_READ);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_FSDEV_WRITEOUT);
|
||||
|
@ -153,7 +153,7 @@ typedef enum {
|
||||
X_QEMU_CAPS_NO_SHUTDOWN, /* usable -no-shutdown */
|
||||
|
||||
/* 75 */
|
||||
QEMU_CAPS_DRIVE_CACHE_UNSAFE, /* Is cache=unsafe supported? */
|
||||
X_QEMU_CAPS_DRIVE_CACHE_UNSAFE, /* Is cache=unsafe supported? */
|
||||
X_QEMU_CAPS_PCI_ROMBAR, /* -device rombar=0|1 */
|
||||
QEMU_CAPS_ICH9_AHCI, /* -device ich9-ahci */
|
||||
QEMU_CAPS_NO_ACPI, /* -no-acpi */
|
||||
|
@ -1348,13 +1348,6 @@ qemuCheckDiskConfig(virDomainDiskDefPtr disk,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (disk->cachemode == VIR_DOMAIN_DISK_CACHE_UNSAFE &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DRIVE_CACHE_UNSAFE)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("disk cache mode 'unsafe' is not supported by this QEMU"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (disk->copy_on_read &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DRIVE_COPY_ON_READ)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
|
@ -26,7 +26,6 @@
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-redir'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -26,7 +26,6 @@
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-redir'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -26,7 +26,6 @@
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-redir'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -26,7 +26,6 @@
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-redir'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -17,7 +17,6 @@
|
||||
<flag name='vt82c686b-usb-uhci'/>
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -17,7 +17,6 @@
|
||||
<flag name='vt82c686b-usb-uhci'/>
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
|
@ -9,7 +9,6 @@
|
||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||
<flag name='virtio-blk-pci.event_idx'/>
|
||||
<flag name='virtio-net-pci.event_idx'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
|
@ -26,7 +26,6 @@
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-redir'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -9,7 +9,6 @@
|
||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||
<flag name='virtio-blk-pci.event_idx'/>
|
||||
<flag name='virtio-net-pci.event_idx'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
|
@ -17,7 +17,6 @@
|
||||
<flag name='vt82c686b-usb-uhci'/>
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -17,7 +17,6 @@
|
||||
<flag name='vt82c686b-usb-uhci'/>
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
|
@ -9,7 +9,6 @@
|
||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||
<flag name='virtio-blk-pci.event_idx'/>
|
||||
<flag name='virtio-net-pci.event_idx'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
|
@ -24,7 +24,6 @@
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-redir'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -26,7 +26,6 @@
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-redir'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -26,7 +26,6 @@
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-redir'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -19,7 +19,6 @@
|
||||
<flag name='vt82c686b-usb-uhci'/>
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -17,7 +17,6 @@
|
||||
<flag name='vt82c686b-usb-uhci'/>
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
|
@ -26,7 +26,6 @@
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-redir'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -9,7 +9,6 @@
|
||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||
<flag name='virtio-blk-pci.event_idx'/>
|
||||
<flag name='virtio-net-pci.event_idx'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
|
@ -26,7 +26,6 @@
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-redir'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -9,7 +9,6 @@
|
||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||
<flag name='virtio-blk-pci.event_idx'/>
|
||||
<flag name='virtio-net-pci.event_idx'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
|
@ -26,7 +26,6 @@
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-redir'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -17,7 +17,6 @@
|
||||
<flag name='vt82c686b-usb-uhci'/>
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
|
@ -9,7 +9,6 @@
|
||||
<flag name='virtio-blk-pci.ioeventfd'/>
|
||||
<flag name='virtio-blk-pci.event_idx'/>
|
||||
<flag name='virtio-net-pci.event_idx'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
|
@ -26,7 +26,6 @@
|
||||
<flag name='pci-ohci'/>
|
||||
<flag name='usb-redir'/>
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='cache-unsafe'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='fsdev-readonly'/>
|
||||
|
@ -949,8 +949,7 @@ mymain(void)
|
||||
DO_TEST("disk-drive-cache-v2-wb", NONE);
|
||||
DO_TEST("disk-drive-cache-v2-none", NONE);
|
||||
DO_TEST("disk-drive-cache-directsync", NONE);
|
||||
DO_TEST("disk-drive-cache-unsafe",
|
||||
QEMU_CAPS_DRIVE_CACHE_UNSAFE);
|
||||
DO_TEST("disk-drive-cache-unsafe", NONE);
|
||||
DO_TEST("disk-drive-copy-on-read",
|
||||
QEMU_CAPS_DRIVE_COPY_ON_READ);
|
||||
DO_TEST("disk-drive-network-nbd", NONE);
|
||||
|
Loading…
Reference in New Issue
Block a user