render / rpms / libvirt

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