b971b8
From 3d20773c3ab225449f1977b064d779adf316853c Mon Sep 17 00:00:00 2001
b971b8
Message-Id: <3d20773c3ab225449f1977b064d779adf316853c@dist-git>
b971b8
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
b971b8
Date: Wed, 1 Apr 2020 17:19:26 +0200
b971b8
Subject: [PATCH] qemu: add QEMU_CAPS_STORAGE_WERROR
b971b8
MIME-Version: 1.0
b971b8
Content-Type: text/plain; charset=UTF-8
b971b8
Content-Transfer-Encoding: 8bit
b971b8
b971b8
Detect the werror property on SCSI and virtio disks.
b971b8
But clear it if the QEMU supports usb-storage device without it
b971b8
also supporting this option for usb-storage.
b971b8
b971b8
Signed-off-by: Ján Tomko <jtomko@redhat.com>
b971b8
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
b971b8
(cherry picked from commit 47e84b06ec8181cbdb00c87bcc67f20edd9e949b)
b971b8
Signed-off-by: Ján Tomko <jtomko@redhat.com>
b971b8
b971b8
https://bugzilla.redhat.com/show_bug.cgi?id=1819250
b971b8
b971b8
Conflicts: src/qemu/qemu_capabilities.c
b971b8
	tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
b971b8
	tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml
b971b8
	tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml
b971b8
	tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml
b971b8
	tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml
b971b8
	tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml
b971b8
	tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml
b971b8
	tests/qemucapabilitiesdata/caps_5.0.0.ppc64.xml
b971b8
	tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml
b971b8
           different capablility sets
b971b8
Message-Id: <67c670e206dd05aac31b86cac1f42e2f37b366e5.1585754141.git.jtomko@redhat.com>
b971b8
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
b971b8
---
b971b8
 src/qemu/qemu_capabilities.c                      | 10 +++++++++-
b971b8
 src/qemu/qemu_capabilities.h                      |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.10.0.s390x.xml  |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.11.0.s390x.xml  |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml  |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml   |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml   |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.9.0.s390x.xml   |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_3.0.0.riscv32.xml |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_3.0.0.riscv64.xml |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_3.0.0.s390x.xml   |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml  |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml   |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml  |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.0.0.aarch64.xml |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml   |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.0.0.riscv32.xml |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.0.0.riscv64.xml |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.0.0.s390x.xml   |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml  |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml  |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml   |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml   |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml  |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml |  1 +
b971b8
 26 files changed, 34 insertions(+), 1 deletion(-)
b971b8
b971b8
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
b971b8
index 0b4ed4253c..9d744501b9 100644
b971b8
--- a/src/qemu/qemu_capabilities.c
b971b8
+++ b/src/qemu/qemu_capabilities.c
b971b8
@@ -563,7 +563,8 @@ VIR_ENUM_IMPL(virQEMUCaps,
b971b8
               "blockdev-reopen",
b971b8
 
b971b8
               /* 355 */
b971b8
-              "blockdev-reopen.__com.redhat_rhel-av-8_2_0-api"
b971b8
+              "blockdev-reopen.__com.redhat_rhel-av-8_2_0-api",
b971b8
+              "storage.werror",
b971b8
     );
b971b8
 
b971b8
 
b971b8
@@ -1299,6 +1300,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVirtioBlk[] = {
b971b8
     { "iommu_platform", QEMU_CAPS_VIRTIO_PCI_IOMMU_PLATFORM },
b971b8
     { "ats", QEMU_CAPS_VIRTIO_PCI_ATS },
b971b8
     { "write-cache", QEMU_CAPS_DISK_WRITE_CACHE },
b971b8
+    { "werror", QEMU_CAPS_STORAGE_WERROR },
b971b8
 };
b971b8
 
b971b8
 static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVirtioNet[] = {
b971b8
@@ -1334,6 +1336,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsSCSIDisk[] = {
b971b8
     { "share-rw", QEMU_CAPS_DISK_SHARE_RW },
b971b8
     { "write-cache", QEMU_CAPS_DISK_WRITE_CACHE },
b971b8
     { "device_id", QEMU_CAPS_SCSI_DISK_DEVICE_ID },
b971b8
+    { "werror", QEMU_CAPS_STORAGE_WERROR },
b971b8
 };
b971b8
 
b971b8
 static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsIDEDrive[] = {
b971b8
@@ -4811,6 +4814,11 @@ virQEMUCapsInitProcessCapsInterlock(virQEMUCapsPtr qemuCaps)
b971b8
 {
b971b8
     if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_BLOCKDEV))
b971b8
         virQEMUCapsClear(qemuCaps, QEMU_CAPS_INCREMENTAL_BACKUP);
b971b8
+
b971b8
+    if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_USB_STORAGE) &&
b971b8
+        !virQEMUCapsGet(qemuCaps, QEMU_CAPS_USB_STORAGE_WERROR)) {
b971b8
+        virQEMUCapsClear(qemuCaps, QEMU_CAPS_STORAGE_WERROR);
b971b8
+    }
b971b8
 }
b971b8
 
b971b8
 
b971b8
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
b971b8
index 0f7c586703..78bddb3856 100644
b971b8
--- a/src/qemu/qemu_capabilities.h
b971b8
+++ b/src/qemu/qemu_capabilities.h
b971b8
@@ -545,6 +545,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
b971b8
 
b971b8
     /* 355 */
b971b8
     QEMU_CAPS_BLOCKDEV_REOPEN_COM_REDHAT_AV_8_2_0_API, /* downstream support for blockdev reopen in rhel-av-8.2.0 */
b971b8
+    QEMU_CAPS_STORAGE_WERROR, /* virtio-blk,scsi-hd.werror */
b971b8
 
b971b8
     QEMU_CAPS_LAST /* this must always be the last item */
b971b8
 } virQEMUCapsFlags;
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.10.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.10.0.s390x.xml
b971b8
index aa9027d514..04ac872985 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.10.0.s390x.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.10.0.s390x.xml
b971b8
@@ -106,6 +106,7 @@
b971b8
   <flag name='iothread.poll-max-ns'/>
b971b8
   <flag name='query-cpu-model-baseline'/>
b971b8
   <flag name='query-cpu-model-comparison'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>2010000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>39100287</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.11.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.11.0.s390x.xml
b971b8
index db51d461a8..6d36a6e484 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.11.0.s390x.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.11.0.s390x.xml
b971b8
@@ -113,6 +113,7 @@
b971b8
   <flag name='iothread.poll-max-ns'/>
b971b8
   <flag name='query-cpu-model-baseline'/>
b971b8
   <flag name='query-cpu-model-comparison'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>2011000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>39100288</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml
b971b8
index cbbe24823a..21a168dd3b 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml
b971b8
@@ -125,6 +125,7 @@
b971b8
   <flag name='query-cpu-model-baseline'/>
b971b8
   <flag name='query-cpu-model-comparison'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>2012000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>39100289</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml
b971b8
index 762ce4946e..17351ca6bf 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml
b971b8
@@ -90,6 +90,7 @@
b971b8
   <flag name='virtual-css-bridge'/>
b971b8
   <flag name='sdl-gl'/>
b971b8
   <flag name='zpci'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>2007000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>39100245</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml
b971b8
index 6000bed682..d204b82030 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml
b971b8
@@ -95,6 +95,7 @@
b971b8
   <flag name='zpci'/>
b971b8
   <flag name='query-cpu-model-baseline'/>
b971b8
   <flag name='query-cpu-model-comparison'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>2007093</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>39100246</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.9.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.9.0.s390x.xml
b971b8
index 95251de022..9a6d94d37b 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.9.0.s390x.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.9.0.s390x.xml
b971b8
@@ -100,6 +100,7 @@
b971b8
   <flag name='iothread.poll-max-ns'/>
b971b8
   <flag name='query-cpu-model-baseline'/>
b971b8
   <flag name='query-cpu-model-comparison'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>2009000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>39100247</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.xml b/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.xml
b971b8
index 0b507ec80e..6814a2f9c6 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_3.0.0.riscv32.xml
b971b8
@@ -95,6 +95,7 @@
b971b8
   <flag name='memory-backend-file.align'/>
b971b8
   <flag name='ramfb'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>3000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>0</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.xml b/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.xml
b971b8
index 0d7c589f71..b81f5825cc 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_3.0.0.riscv64.xml
b971b8
@@ -95,6 +95,7 @@
b971b8
   <flag name='memory-backend-file.align'/>
b971b8
   <flag name='ramfb'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>3000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>0</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.s390x.xml b/tests/qemucapabilitiesdata/caps_3.0.0.s390x.xml
b971b8
index da57f8738b..85cda12076 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_3.0.0.s390x.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_3.0.0.s390x.xml
b971b8
@@ -128,6 +128,7 @@
b971b8
   <flag name='query-cpu-model-comparison'/>
b971b8
   <flag name='ramfb'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>3000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>39100239</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
b971b8
index c955994ac0..575b1c2a43 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
b971b8
@@ -202,6 +202,7 @@
b971b8
   <flag name='bochs-display'/>
b971b8
   <flag name='ramfb'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>3000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100239</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml
b971b8
index cab38d442b..591f054193 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml
b971b8
@@ -159,6 +159,7 @@
b971b8
   <flag name='overcommit'/>
b971b8
   <flag name='bochs-display'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>3000091</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>42900240</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml
b971b8
index 3e89d7f933..6e434579ff 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml
b971b8
@@ -205,6 +205,7 @@
b971b8
   <flag name='bochs-display'/>
b971b8
   <flag name='ramfb'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>3000092</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100240</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.xml b/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.xml
b971b8
index 757bf193fc..6fd1880ae2 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.0.0.aarch64.xml
b971b8
@@ -169,6 +169,7 @@
b971b8
   <flag name='ramfb'/>
b971b8
   <flag name='arm-max-cpu'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>4000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>61700240</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml
b971b8
index 4e13888042..aa22eccc6f 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml
b971b8
@@ -173,6 +173,7 @@
b971b8
   <flag name='migration-file-drop-cache'/>
b971b8
   <flag name='machine.pseries.cap-ccf-assist'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>4000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>42900240</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.xml b/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.xml
b971b8
index 7d3a1bec6f..6a567239b9 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.0.0.riscv32.xml
b971b8
@@ -170,6 +170,7 @@
b971b8
   <flag name='bochs-display'/>
b971b8
   <flag name='migration-file-drop-cache'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>4000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>0</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.xml b/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.xml
b971b8
index 1732139db8..d6686b7c68 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.0.0.riscv64.xml
b971b8
@@ -170,6 +170,7 @@
b971b8
   <flag name='bochs-display'/>
b971b8
   <flag name='migration-file-drop-cache'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>4000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>0</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.s390x.xml b/tests/qemucapabilitiesdata/caps_4.0.0.s390x.xml
b971b8
index fd124ce0c5..9dc29832f9 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.0.0.s390x.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.0.0.s390x.xml
b971b8
@@ -136,6 +136,7 @@
b971b8
   <flag name='query-cpu-model-baseline'/>
b971b8
   <flag name='query-cpu-model-comparison'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>4000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>39100240</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml
b971b8
index ba32d4c592..3c1baf9560 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml
b971b8
@@ -210,6 +210,7 @@
b971b8
   <flag name='migration-file-drop-cache'/>
b971b8
   <flag name='ramfb'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>4000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100240</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml
b971b8
index 54b797a86a..d5f2673fb6 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml
b971b8
@@ -216,6 +216,7 @@
b971b8
   <flag name='blockdev-file-dynamic-auto-read-only'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
   <flag name='smp-dies'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>4001000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100241</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml b/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml
b971b8
index 55fa169d89..75f9bc3158 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml
b971b8
@@ -178,6 +178,7 @@
b971b8
   <flag name='smp-dies'/>
b971b8
   <flag name='virtio-net.failover'/>
b971b8
   <flag name='vhost-user-fs'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>4001050</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>61700242</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml
b971b8
index 7c62546d74..f5121fca94 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml
b971b8
@@ -177,6 +177,7 @@
b971b8
   <flag name='blockdev-file-dynamic-auto-read-only'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
   <flag name='smp-dies'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>4001050</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>42900242</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml b/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml
b971b8
index 49963b7020..59cb9200cb 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.2.0.s390x.xml
b971b8
@@ -137,6 +137,7 @@
b971b8
   <flag name='drive-nvme'/>
b971b8
   <flag name='smp-dies'/>
b971b8
   <flag name='vhost-user-fs'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>4001050</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>39100242</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml
b971b8
index ed3dea23b3..f6df71ff3e 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml
b971b8
@@ -221,6 +221,7 @@
b971b8
   <flag name='smp-dies'/>
b971b8
   <flag name='virtio-net.failover'/>
b971b8
   <flag name='vhost-user-fs'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>4002000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100242</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml b/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml
b971b8
index 8195da4e27..140a466910 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_5.0.0.aarch64.xml
b971b8
@@ -180,6 +180,7 @@
b971b8
   <flag name='virtio-net.failover'/>
b971b8
   <flag name='cpu.kvm-no-adjvtime'/>
b971b8
   <flag name='vhost-user-fs'/>
b971b8
+  <flag name='storage.werror'/>
b971b8
   <version>4002050</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>61700241</microcodeVersion>
b971b8
-- 
b971b8
2.26.2
b971b8