mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
Deprecate QEMU_CAPS_DRIVE_READONLY
We have been assuming its support if qemu supports -device, which all the supported versions do.
This commit is contained in:
parent
00c9877e77
commit
e9488fcd20
@ -1134,8 +1134,6 @@ virQEMUCapsComputeCmdFlags(const char *help,
|
||||
if (memmem(cache, p - cache, "unsafe", sizeof("unsafe") - 1))
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_CACHE_UNSAFE);
|
||||
}
|
||||
if (strstr(help, "readonly="))
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_READONLY);
|
||||
if (strstr(help, "aio=threads|native"))
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_AIO);
|
||||
if (strstr(help, "copy-on-read=on|off"))
|
||||
@ -1173,14 +1171,8 @@ virQEMUCapsComputeCmdFlags(const char *help,
|
||||
if (strstr(help, "-chardev spiceport"))
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_CHARDEV_SPICEPORT);
|
||||
}
|
||||
if (strstr(help, "-device")) {
|
||||
if (strstr(help, "-device"))
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DEVICE);
|
||||
/*
|
||||
* When -device was introduced, qemu already supported drive's
|
||||
* readonly option but didn't advertise that.
|
||||
*/
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_READONLY);
|
||||
}
|
||||
if (strstr(help, "-nodefconfig"))
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_NODEFCONFIG);
|
||||
if (strstr(help, "-no-user-config"))
|
||||
@ -3392,7 +3384,6 @@ virQEMUCapsInitQMPBasic(virQEMUCapsPtr qemuCaps)
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_BOOT_MENU);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_FSDEV);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_NAME_PROCESS);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_READONLY);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_SMBIOS_TYPE);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_VGA_NONE);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DRIVE_AIO);
|
||||
|
@ -105,7 +105,7 @@ typedef enum {
|
||||
QEMU_CAPS_FSDEV, /* -fstype filesystem passthrough */
|
||||
QEMU_CAPS_NESTING, /* -enable-nesting (SVM/VMX) */
|
||||
QEMU_CAPS_NAME_PROCESS, /* Is -name process= available */
|
||||
QEMU_CAPS_DRIVE_READONLY, /* -drive readonly=on|off */
|
||||
X_QEMU_CAPS_DRIVE_READONLY, /* -drive readonly=on|off */
|
||||
QEMU_CAPS_SMBIOS_TYPE, /* Is -smbios type= available */
|
||||
|
||||
/* 45 */
|
||||
|
@ -20,7 +20,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-qxl'/>
|
||||
<flag name='spice'/>
|
||||
|
@ -21,7 +21,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-qxl'/>
|
||||
<flag name='spice'/>
|
||||
|
@ -21,7 +21,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-qxl'/>
|
||||
<flag name='spice'/>
|
||||
|
@ -21,7 +21,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-qxl'/>
|
||||
<flag name='spice'/>
|
||||
|
@ -21,7 +21,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-qxl'/>
|
||||
<flag name='spice'/>
|
||||
|
@ -21,7 +21,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-qxl'/>
|
||||
<flag name='spice'/>
|
||||
|
@ -21,7 +21,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-qxl'/>
|
||||
<flag name='spice'/>
|
||||
|
@ -21,7 +21,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-qxl'/>
|
||||
<flag name='spice'/>
|
||||
|
@ -21,7 +21,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-qxl'/>
|
||||
<flag name='spice'/>
|
||||
|
@ -18,7 +18,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-none'/>
|
||||
<flag name='boot-index'/>
|
||||
|
@ -18,7 +18,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-none'/>
|
||||
<flag name='boot-index'/>
|
||||
|
@ -18,7 +18,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-none'/>
|
||||
<flag name='boot-index'/>
|
||||
|
@ -21,7 +21,6 @@
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
<flag name='name-process'/>
|
||||
<flag name='drive-readonly'/>
|
||||
<flag name='smbios-type'/>
|
||||
<flag name='vga-qxl'/>
|
||||
<flag name='spice'/>
|
||||
|
@ -153,7 +153,6 @@ mymain(void)
|
||||
|
||||
DO_TEST("qemu-0.12.1", 12001, 0, 0,
|
||||
QEMU_CAPS_DRIVE_SERIAL,
|
||||
QEMU_CAPS_DRIVE_READONLY,
|
||||
QEMU_CAPS_ENABLE_KVM,
|
||||
QEMU_CAPS_SDL,
|
||||
QEMU_CAPS_CHARDEV,
|
||||
@ -173,7 +172,6 @@ mymain(void)
|
||||
QEMU_CAPS_DRIVE_BOOT,
|
||||
QEMU_CAPS_KVM,
|
||||
QEMU_CAPS_DRIVE_SERIAL,
|
||||
QEMU_CAPS_DRIVE_READONLY,
|
||||
QEMU_CAPS_PCIDEVICE,
|
||||
QEMU_CAPS_MEM_PATH,
|
||||
QEMU_CAPS_CHARDEV,
|
||||
@ -218,7 +216,6 @@ mymain(void)
|
||||
QEMU_CAPS_DRIVE_BOOT,
|
||||
QEMU_CAPS_KVM,
|
||||
QEMU_CAPS_DRIVE_SERIAL,
|
||||
QEMU_CAPS_DRIVE_READONLY,
|
||||
QEMU_CAPS_PCIDEVICE,
|
||||
QEMU_CAPS_MEM_PATH,
|
||||
QEMU_CAPS_SDL,
|
||||
@ -244,7 +241,6 @@ mymain(void)
|
||||
QEMU_CAPS_DRIVE_CACHE_UNSAFE,
|
||||
QEMU_CAPS_KVM,
|
||||
QEMU_CAPS_DRIVE_SERIAL,
|
||||
QEMU_CAPS_DRIVE_READONLY,
|
||||
QEMU_CAPS_PCIDEVICE,
|
||||
QEMU_CAPS_MEM_PATH,
|
||||
QEMU_CAPS_SDL,
|
||||
@ -299,7 +295,6 @@ mymain(void)
|
||||
QEMU_CAPS_DRIVE_CACHE_UNSAFE,
|
||||
QEMU_CAPS_KVM,
|
||||
QEMU_CAPS_DRIVE_SERIAL,
|
||||
QEMU_CAPS_DRIVE_READONLY,
|
||||
QEMU_CAPS_PCIDEVICE,
|
||||
QEMU_CAPS_MEM_PATH,
|
||||
QEMU_CAPS_CHARDEV,
|
||||
@ -351,7 +346,6 @@ mymain(void)
|
||||
QEMU_CAPS_DRIVE_CACHE_UNSAFE,
|
||||
QEMU_CAPS_KVM,
|
||||
QEMU_CAPS_DRIVE_SERIAL,
|
||||
QEMU_CAPS_DRIVE_READONLY,
|
||||
QEMU_CAPS_PCIDEVICE,
|
||||
QEMU_CAPS_MEM_PATH,
|
||||
QEMU_CAPS_CHARDEV,
|
||||
@ -410,7 +404,6 @@ mymain(void)
|
||||
DO_TEST("qemu-1.0", 1000000, 0, 0,
|
||||
QEMU_CAPS_DRIVE_CACHE_UNSAFE,
|
||||
QEMU_CAPS_DRIVE_SERIAL,
|
||||
QEMU_CAPS_DRIVE_READONLY,
|
||||
QEMU_CAPS_MEM_PATH,
|
||||
QEMU_CAPS_SDL,
|
||||
QEMU_CAPS_CHARDEV,
|
||||
@ -485,7 +478,6 @@ mymain(void)
|
||||
DO_TEST("qemu-1.1.0", 1001000, 0, 0,
|
||||
QEMU_CAPS_DRIVE_CACHE_UNSAFE,
|
||||
QEMU_CAPS_DRIVE_SERIAL,
|
||||
QEMU_CAPS_DRIVE_READONLY,
|
||||
QEMU_CAPS_MEM_PATH,
|
||||
QEMU_CAPS_SDL,
|
||||
QEMU_CAPS_CHARDEV,
|
||||
|
@ -300,7 +300,6 @@ static int testCompareXMLToArgvFiles(const char *xml,
|
||||
virQEMUCapsSetList(extraFlags,
|
||||
QEMU_CAPS_NO_ACPI,
|
||||
QEMU_CAPS_DEVICE,
|
||||
QEMU_CAPS_DRIVE_READONLY,
|
||||
QEMU_CAPS_LAST);
|
||||
|
||||
if (STREQ(vm->def->os.machine, "pc") &&
|
||||
@ -661,8 +660,7 @@ mymain(void)
|
||||
DO_TEST_FAILURE("reboot-timeout-enabled", NONE);
|
||||
|
||||
DO_TEST("bios", QEMU_CAPS_SGA);
|
||||
DO_TEST("bios-nvram",
|
||||
QEMU_CAPS_DRIVE_READONLY);
|
||||
DO_TEST("bios-nvram", NONE);
|
||||
DO_TEST("clock-utc", QEMU_CAPS_NODEFCONFIG);
|
||||
DO_TEST("clock-localtime", NONE);
|
||||
DO_TEST("clock-localtime-basis-localtime", QEMU_CAPS_RTC);
|
||||
@ -760,10 +758,9 @@ mymain(void)
|
||||
DO_TEST("floppy-drive-fat",
|
||||
QEMU_CAPS_DRIVE_BOOT);
|
||||
DO_TEST("disk-drive-readonly-disk",
|
||||
QEMU_CAPS_DRIVE_READONLY,
|
||||
QEMU_CAPS_NODEFCONFIG);
|
||||
DO_TEST("disk-drive-readonly-no-device",
|
||||
QEMU_CAPS_DRIVE_READONLY, QEMU_CAPS_NODEFCONFIG);
|
||||
QEMU_CAPS_NODEFCONFIG);
|
||||
DO_TEST("disk-drive-fmt-qcow",
|
||||
QEMU_CAPS_DRIVE_BOOT);
|
||||
DO_TEST("disk-drive-shared",
|
||||
@ -1647,7 +1644,7 @@ mymain(void)
|
||||
QEMU_CAPS_VIRTIO_SCSI, QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_DEVICE_SCSI_GENERIC);
|
||||
DO_TEST("hostdev-scsi-readonly",
|
||||
QEMU_CAPS_DRIVE_READONLY, QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_VIRTIO_SCSI,
|
||||
QEMU_CAPS_VIRTIO_SCSI, QEMU_CAPS_DEVICE_SCSI_GENERIC);
|
||||
DO_TEST("hostdev-scsi-virtio-scsi",
|
||||
QEMU_CAPS_VIRTIO_SCSI, QEMU_CAPS_VIRTIO_SCSI,
|
||||
|
Loading…
x
Reference in New Issue
Block a user