|
|
edecca |
From 81505bfde8f4acf9b94a1c6dc010d707dcd49b6a Mon Sep 17 00:00:00 2001
|
|
|
edecca |
Message-Id: <81505bfde8f4acf9b94a1c6dc010d707dcd49b6a@dist-git>
|
|
|
edecca |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
edecca |
Date: Thu, 19 Jul 2018 15:03:48 +0200
|
|
|
edecca |
Subject: [PATCH] qemu: capabilities: Add capability for werror/rerror for
|
|
|
edecca |
'usb-device' frontend
|
|
|
edecca |
MIME-Version: 1.0
|
|
|
edecca |
Content-Type: text/plain; charset=UTF-8
|
|
|
edecca |
Content-Transfer-Encoding: 8bit
|
|
|
edecca |
|
|
|
edecca |
Support for specifying it with the -device frontend was added recently.
|
|
|
edecca |
Add a capability for it.
|
|
|
edecca |
|
|
|
edecca |
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
edecca |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
edecca |
(cherry picked from commit a087a8e60ad62a719165e3c2c9970480b9531062)
|
|
|
edecca |
|
|
|
edecca |
https://bugzilla.redhat.com/show_bug.cgi?id=1475770
|
|
|
edecca |
Signed-off-by: Erik Skultety <eskultet@redhat.com>
|
|
|
edecca |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
edecca |
---
|
|
|
edecca |
src/qemu/qemu_capabilities.c | 2 ++
|
|
|
edecca |
src/qemu/qemu_capabilities.h | 1 +
|
|
|
edecca |
tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml | 1 +
|
|
|
edecca |
3 files changed, 4 insertions(+)
|
|
|
edecca |
|
|
|
edecca |
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
|
|
|
edecca |
index c7da916f9a..23b483349f 100644
|
|
|
edecca |
--- a/src/qemu/qemu_capabilities.c
|
|
|
edecca |
+++ b/src/qemu/qemu_capabilities.c
|
|
|
edecca |
@@ -502,6 +502,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
|
|
edecca |
"sev-guest",
|
|
|
edecca |
"machine.pseries.cap-hpt-max-page-size",
|
|
|
edecca |
"machine.pseries.cap-htm",
|
|
|
edecca |
+ "usb-storage.werror",
|
|
|
edecca |
);
|
|
|
edecca |
|
|
|
edecca |
|
|
|
edecca |
@@ -1240,6 +1241,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsUSBStorage[] = {
|
|
|
edecca |
{ "removable", QEMU_CAPS_USB_STORAGE_REMOVABLE },
|
|
|
edecca |
{ "share-rw", QEMU_CAPS_DISK_SHARE_RW },
|
|
|
edecca |
{ "write-cache", QEMU_CAPS_DISK_WRITE_CACHE },
|
|
|
edecca |
+ { "werror", QEMU_CAPS_USB_STORAGE_WERROR },
|
|
|
edecca |
};
|
|
|
edecca |
|
|
|
edecca |
static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsKVMPit[] = {
|
|
|
edecca |
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
|
|
|
edecca |
index a048a1cf02..1fa0ebfea3 100644
|
|
|
edecca |
--- a/src/qemu/qemu_capabilities.h
|
|
|
edecca |
+++ b/src/qemu/qemu_capabilities.h
|
|
|
edecca |
@@ -486,6 +486,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
|
|
edecca |
QEMU_CAPS_SEV_GUEST, /* -object sev-guest,... */
|
|
|
edecca |
QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_SIZE, /* -machine pseries.cap-hpt-max-page-size */
|
|
|
edecca |
QEMU_CAPS_MACHINE_PSERIES_CAP_HTM, /* -machine pseries.cap-htm */
|
|
|
edecca |
+ QEMU_CAPS_USB_STORAGE_WERROR, /* -device usb-storage,werror=..,rerror=.. */
|
|
|
edecca |
|
|
|
edecca |
QEMU_CAPS_LAST /* this must always be the last item */
|
|
|
edecca |
} virQEMUCapsFlags;
|
|
|
edecca |
diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
|
|
|
edecca |
index 07e3de8677..d7c25c65dd 100644
|
|
|
edecca |
--- a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
|
|
|
edecca |
+++ b/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
|
|
|
edecca |
@@ -209,6 +209,7 @@
|
|
|
edecca |
<flag name='mch'/>
|
|
|
edecca |
<flag name='mch.extended-tseg-mbytes'/>
|
|
|
edecca |
<flag name='sev-guest'/>
|
|
|
edecca |
+ <flag name='usb-storage.werror'/>
|
|
|
edecca |
<version>2012050</version>
|
|
|
edecca |
<kvmVersion>0</kvmVersion>
|
|
|
edecca |
<microcodeVersion>437827</microcodeVersion>
|
|
|
edecca |
--
|
|
|
edecca |
2.18.0
|
|
|
edecca |
|