]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: capabilities: Add capability for werror/rerror for 'usb-device' frontend
authorPeter Krempa <pkrempa@redhat.com>
Mon, 9 Jul 2018 14:35:02 +0000 (16:35 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 10 Jul 2018 11:37:51 +0000 (13:37 +0200)
Support for specifying it with the -device frontend was added recently.
Add a capability for it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml

index c7da916f9a817f798a59f3039905f36a1f11e358..23b483349f5b3abec92a05e960f175f39464710e 100644 (file)
@@ -502,6 +502,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
               "sev-guest",
               "machine.pseries.cap-hpt-max-page-size",
               "machine.pseries.cap-htm",
+              "usb-storage.werror",
     );
 
 
@@ -1240,6 +1241,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsUSBStorage[] = {
     { "removable", QEMU_CAPS_USB_STORAGE_REMOVABLE },
     { "share-rw", QEMU_CAPS_DISK_SHARE_RW },
     { "write-cache", QEMU_CAPS_DISK_WRITE_CACHE },
+    { "werror", QEMU_CAPS_USB_STORAGE_WERROR },
 };
 
 static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsKVMPit[] = {
index a048a1cf02fb5ae9792f1831994fd64837887492..1fa0ebfea386cce33f8e00e8e7208128b8f4adc5 100644 (file)
@@ -486,6 +486,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
     QEMU_CAPS_SEV_GUEST, /* -object sev-guest,... */
     QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_SIZE, /* -machine pseries.cap-hpt-max-page-size */
     QEMU_CAPS_MACHINE_PSERIES_CAP_HTM, /* -machine pseries.cap-htm */
+    QEMU_CAPS_USB_STORAGE_WERROR, /* -device usb-storage,werror=..,rerror=.. */
 
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;
index 07e3de86772f148364ca4ce3d256e5f17f33d931..d7c25c65dd8d2fe79033ff5aeba0bbd20ae481cb 100644 (file)
   <flag name='mch'/>
   <flag name='mch.extended-tseg-mbytes'/>
   <flag name='sev-guest'/>
+  <flag name='usb-storage.werror'/>
   <version>2012050</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>437827</microcodeVersion>