mirror of https://gitee.com/openkylin/libvirt.git
qemu: deprecate QEMU_CAPS_FSDEV_WRITEOUT
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
08ad06ca68
commit
b6389394e0
|
@ -3626,7 +3626,6 @@ static qemuMonitorCallbacks callbacks = {
|
|||
static void
|
||||
virQEMUCapsInitQMPBasic(virQEMUCapsPtr qemuCaps)
|
||||
{
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_FSDEV_WRITEOUT);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_IOTUNE);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_WAKEUP);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_NETDEV_BRIDGE);
|
||||
|
|
|
@ -164,7 +164,7 @@ typedef enum {
|
|||
X_QEMU_CAPS_VIRTIO_BLK_SG_IO, /* SG_IO commands */
|
||||
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 */
|
||||
X_QEMU_CAPS_FSDEV_WRITEOUT, /* -fsdev writeout supported */
|
||||
|
||||
/* 85 */
|
||||
QEMU_CAPS_DRIVE_IOTUNE, /* -drive bps= and friends */
|
||||
|
|
|
@ -2312,8 +2312,7 @@ qemuBuildDiskDriveCommandLine(virCommandPtr cmd,
|
|||
|
||||
|
||||
static char *
|
||||
qemuBuildFSStr(virDomainFSDefPtr fs,
|
||||
virQEMUCapsPtr qemuCaps)
|
||||
qemuBuildFSStr(virDomainFSDefPtr fs)
|
||||
{
|
||||
virBuffer opt = VIR_BUFFER_INITIALIZER;
|
||||
const char *driver = qemuDomainFSDriverTypeToString(fs->fsdriver);
|
||||
|
@ -2351,15 +2350,8 @@ qemuBuildFSStr(virDomainFSDefPtr fs,
|
|||
}
|
||||
}
|
||||
|
||||
if (fs->wrpolicy) {
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_FSDEV_WRITEOUT)) {
|
||||
virBufferAsprintf(&opt, ",writeout=%s", wrpolicy);
|
||||
} else {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("filesystem writeout not supported"));
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
if (fs->wrpolicy)
|
||||
virBufferAsprintf(&opt, ",writeout=%s", wrpolicy);
|
||||
|
||||
virBufferAsprintf(&opt, ",id=%s%s", QEMU_FSDEV_HOST_PREFIX, fs->info.alias);
|
||||
virBufferAsprintf(&opt, ",path=%s", fs->src->path);
|
||||
|
@ -2430,7 +2422,7 @@ qemuBuildFSDevCommandLine(virCommandPtr cmd,
|
|||
virDomainFSDefPtr fs = def->fss[i];
|
||||
|
||||
virCommandAddArg(cmd, "-fsdev");
|
||||
if (!(optstr = qemuBuildFSStr(fs, qemuCaps)))
|
||||
if (!(optstr = qemuBuildFSStr(fs)))
|
||||
return -1;
|
||||
virCommandAddArg(cmd, optstr);
|
||||
VIR_FREE(optstr);
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
<flag name='usb-hub'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -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='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -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='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
<flag name='usb-hub'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -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='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
<flag name='usb-hub'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -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='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -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='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
<flag name='usb-hub'/>
|
||||
<flag name='ich9-ahci'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -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='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
<flag name='ich9-ahci'/>
|
||||
<flag name='no-acpi'/>
|
||||
<flag name='virtio-blk-pci.scsi'/>
|
||||
<flag name='fsdev-writeout'/>
|
||||
<flag name='drive-iotune'/>
|
||||
<flag name='system_wakeup'/>
|
||||
<flag name='scsi-disk.channel'/>
|
||||
|
|
|
@ -1470,10 +1470,8 @@ mymain(void)
|
|||
QEMU_CAPS_HDA_DUPLEX, QEMU_CAPS_HDA_MICRO,
|
||||
QEMU_CAPS_DEVICE_ICH9_INTEL_HDA,
|
||||
QEMU_CAPS_OBJECT_USB_AUDIO);
|
||||
DO_TEST("fs9p",
|
||||
QEMU_CAPS_FSDEV_WRITEOUT);
|
||||
DO_TEST("fs9p", NONE);
|
||||
DO_TEST("fs9p-ccw",
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_VIRTIO_CCW, QEMU_CAPS_VIRTIO_S390);
|
||||
|
||||
DO_TEST("hostdev-usb-address", NONE);
|
||||
|
@ -2046,7 +2044,6 @@ mymain(void)
|
|||
QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
|
@ -2069,7 +2066,6 @@ mymain(void)
|
|||
QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
|
@ -2090,7 +2086,6 @@ mymain(void)
|
|||
QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
|
@ -2110,7 +2105,6 @@ mymain(void)
|
|||
QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
|
@ -2130,7 +2124,6 @@ mymain(void)
|
|||
QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
|
@ -2155,7 +2148,6 @@ mymain(void)
|
|||
QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
|
@ -2738,7 +2730,6 @@ mymain(void)
|
|||
DO_TEST("virtio-options", QEMU_CAPS_VIRTIO_SCSI, QEMU_CAPS_VIRTIO_KEYBOARD,
|
||||
QEMU_CAPS_VIRTIO_MOUSE, QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_VIRTIO_GPU,
|
||||
QEMU_CAPS_VIRTIO_GPU_VIRGL,
|
||||
QEMU_CAPS_DEVICE_VIRTIO_RNG,
|
||||
|
|
|
@ -740,7 +740,6 @@ mymain(void)
|
|||
QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
|
@ -761,7 +760,6 @@ mymain(void)
|
|||
QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
|
@ -782,7 +780,6 @@ mymain(void)
|
|||
QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
|
@ -802,7 +799,6 @@ mymain(void)
|
|||
QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
|
@ -822,7 +818,6 @@ mymain(void)
|
|||
QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
|
@ -846,7 +841,6 @@ mymain(void)
|
|||
QEMU_CAPS_VIRTIO_TABLET,
|
||||
QEMU_CAPS_VIRTIO_INPUT_HOST,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_FSDEV_WRITEOUT,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_IOH3420,
|
||||
|
|
Loading…
Reference in New Issue