mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 01:18:00 +03:00
qemu: deprecate QEMU_CAPS_DRIVE_COPY_ON_READ
Implied by QEMU >= 1.2.0. Also delete the now redundant disk-drive-copy-on-read test. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
dd924fb05c
commit
08ad06ca68
@ -3626,7 +3626,6 @@ static qemuMonitorCallbacks callbacks = {
|
||||
static void
|
||||
virQEMUCapsInitQMPBasic(virQEMUCapsPtr qemuCaps)
|
||||
{
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_COPY_ON_READ);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_FSDEV_WRITEOUT);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_IOTUNE);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_WAKEUP);
|
||||
|
@ -162,7 +162,7 @@ typedef enum {
|
||||
/* 80 */
|
||||
QEMU_CAPS_VIRTIO_BLK_SCSI, /* virtio-blk-pci.scsi */
|
||||
X_QEMU_CAPS_VIRTIO_BLK_SG_IO, /* SG_IO commands */
|
||||
QEMU_CAPS_DRIVE_COPY_ON_READ, /* -drive copy-on-read */
|
||||
X_QEMU_CAPS_DRIVE_COPY_ON_READ, /* -drive copy-on-read */
|
||||
X_QEMU_CAPS_CPU_HOST, /* support for -cpu host */
|
||||
QEMU_CAPS_FSDEV_WRITEOUT, /* -fsdev writeout supported */
|
||||
|
||||
|
@ -1348,13 +1348,6 @@ qemuCheckDiskConfig(virDomainDiskDefPtr disk,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (disk->copy_on_read &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DRIVE_COPY_ON_READ)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("copy_on_read is not supported by this QEMU binary"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (disk->discard &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DRIVE_DISCARD)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
|
@ -29,7 +29,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -29,7 +29,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -29,7 +29,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -29,7 +29,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -20,7 +20,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -19,7 +19,6 @@
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -10,7 +10,6 @@
|
||||
<flag name='virtio-blk-pci.event_idx'/>
|
||||
<flag name='virtio-net-pci.event_idx'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -29,7 +29,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -10,7 +10,6 @@
|
||||
<flag name='virtio-blk-pci.event_idx'/>
|
||||
<flag name='virtio-net-pci.event_idx'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -20,7 +20,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -19,7 +19,6 @@
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -10,7 +10,6 @@
|
||||
<flag name='virtio-blk-pci.event_idx'/>
|
||||
<flag name='virtio-net-pci.event_idx'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -27,7 +27,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -29,7 +29,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -29,7 +29,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -22,7 +22,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -19,7 +19,6 @@
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -29,7 +29,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -10,7 +10,6 @@
|
||||
<flag name='virtio-blk-pci.event_idx'/>
|
||||
<flag name='virtio-net-pci.event_idx'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -29,7 +29,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -10,7 +10,6 @@
|
||||
<flag name='virtio-blk-pci.event_idx'/>
|
||||
<flag name='virtio-net-pci.event_idx'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -29,7 +29,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -19,7 +19,6 @@
|
||||
<flag name='usb-hub'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -10,7 +10,6 @@
|
||||
<flag name='virtio-blk-pci.event_idx'/>
|
||||
<flag name='virtio-net-pci.event_idx'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -29,7 +29,6 @@
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='drive-copy-on-read'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
|
@ -1,28 +0,0 @@
|
||||
LC_ALL=C \
|
||||
PATH=/bin \
|
||||
HOME=/home/test \
|
||||
USER=test \
|
||||
LOGNAME=test \
|
||||
QEMU_AUDIO_DRV=none \
|
||||
/usr/bin/qemu-system-i686 \
|
||||
-name QEMUGuest1 \
|
||||
-S \
|
||||
-M pc \
|
||||
-m 214 \
|
||||
-smp 1,sockets=1,cores=1,threads=1 \
|
||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||
-nographic \
|
||||
-no-user-config \
|
||||
-nodefaults \
|
||||
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
||||
server,nowait \
|
||||
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||
-rtc base=utc \
|
||||
-no-shutdown \
|
||||
-no-acpi \
|
||||
-boot c \
|
||||
-usb \
|
||||
-drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-ide0-0-0,\
|
||||
copy-on-read=on \
|
||||
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 \
|
||||
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
|
@ -950,8 +950,6 @@ mymain(void)
|
||||
DO_TEST("disk-drive-cache-v2-none", NONE);
|
||||
DO_TEST("disk-drive-cache-directsync", NONE);
|
||||
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);
|
||||
DO_TEST("disk-drive-network-nbd-export", NONE);
|
||||
DO_TEST("disk-drive-network-nbd-ipv6", NONE);
|
||||
@ -1036,7 +1034,6 @@ mymain(void)
|
||||
QEMU_CAPS_VIRTIO_TX_ALG,
|
||||
QEMU_CAPS_VIRTIO_BLK_SCSI);
|
||||
DO_TEST("disk-copy_on_read",
|
||||
QEMU_CAPS_DRIVE_COPY_ON_READ,
|
||||
QEMU_CAPS_VIRTIO_TX_ALG,
|
||||
QEMU_CAPS_VIRTIO_BLK_SCSI);
|
||||
DO_TEST("disk-drive-discard",
|
||||
|
Loading…
Reference in New Issue
Block a user