diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index c7ce1bdf225deedb38c0d7169545fa7c1661efc8..8a63db5f4f33f248da669e33b429cd96690c49bc 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -488,6 +488,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
"sdl-gl",
"screendump_device",
"hda-output",
+ "blockdev-del",
);
@@ -997,6 +998,7 @@ struct virQEMUCapsStringFlags virQEMUCapsCommands[] = {
{ "query-named-block-nodes", QEMU_CAPS_QUERY_NAMED_BLOCK_NODES },
{ "query-cpus-fast", QEMU_CAPS_QUERY_CPUS_FAST },
{ "qom-list-properties", QEMU_CAPS_QOM_LIST_PROPERTIES },
+ { "blockdev-del", QEMU_CAPS_BLOCKDEV_DEL },
};
struct virQEMUCapsStringFlags virQEMUCapsMigration[] = {
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
index 81d95375f4c7008811b93eb6aff44a5b65db058c..3e120e64c0b403d6e2a82fd92091c34039c86b86 100644
--- a/src/qemu/qemu_capabilities.h
+++ b/src/qemu/qemu_capabilities.h
@@ -472,6 +472,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
QEMU_CAPS_SDL_GL, /* -sdl gl */
QEMU_CAPS_SCREENDUMP_DEVICE, /* screendump command accepts device & head */
QEMU_CAPS_HDA_OUTPUT, /* -device hda-output */
+ QEMU_CAPS_BLOCKDEV_DEL, /* blockdev-del is supported */
QEMU_CAPS_LAST /* this must always be the last item */
} virQEMUCapsFlags;
diff --git a/tests/qemucapabilitiesdata/caps_2.10.0.aarch64.xml b/tests/qemucapabilitiesdata/caps_2.10.0.aarch64.xml
index 8c2eccdda2e216b9db3ded326b116d43a20eb205..fdc7ec3f69ab3eb3be50233e03c82477695dafde 100644
--- a/tests/qemucapabilitiesdata/caps_2.10.0.aarch64.xml
+++ b/tests/qemucapabilitiesdata/caps_2.10.0.aarch64.xml
@@ -157,6 +157,7 @@
+
2010000
0
303541
diff --git a/tests/qemucapabilitiesdata/caps_2.10.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_2.10.0.ppc64.xml
index 265e014c05901c99ad7670c6b045654b6f0c5ba3..a316045598bb6df9c7f5e883f5d7843b60fa800f 100644
--- a/tests/qemucapabilitiesdata/caps_2.10.0.ppc64.xml
+++ b/tests/qemucapabilitiesdata/caps_2.10.0.ppc64.xml
@@ -156,6 +156,7 @@
+
2010000
0
382824
diff --git a/tests/qemucapabilitiesdata/caps_2.10.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.10.0.s390x.xml
index 08e7b1d2b8a698ffe58646bbac9cf1636190408f..68006c6fa0fc2ce3a515b32f5a48107dd91b1b06 100644
--- a/tests/qemucapabilitiesdata/caps_2.10.0.s390x.xml
+++ b/tests/qemucapabilitiesdata/caps_2.10.0.s390x.xml
@@ -117,6 +117,7 @@
+
2010000
0
303434
diff --git a/tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml
index 6ee5041fa5ae8d81ffd38ce816de90a454a902c2..9f0bcaa75a81d96a6a17ef1f971821cdacfacb0f 100644
--- a/tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml
+++ b/tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml
@@ -199,6 +199,7 @@
+
2010000
0
344938
diff --git a/tests/qemucapabilitiesdata/caps_2.11.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.11.0.s390x.xml
index 4d1c808917886a70536ea83c7d711ad13889db60..cb11562e39cc3b9eb4f38b58b6591e515bbd9bde 100644
--- a/tests/qemucapabilitiesdata/caps_2.11.0.s390x.xml
+++ b/tests/qemucapabilitiesdata/caps_2.11.0.s390x.xml
@@ -123,6 +123,7 @@
+
2011000
0
342166
diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml b/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml
index 15614050c8e6cf3ece433851f1d4967c015119f3..0dbd35488797530887d078020b2c2aa32e8577f9 100644
--- a/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml
+++ b/tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml
@@ -165,6 +165,7 @@
+
2011090
0
343099
diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml
index 48b036e3cee23cef3ffe4c7ea9c75c9b964dacdd..9b08993b7ef4e0b3c1f424d90eb67a54a7beb693 100644
--- a/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml
+++ b/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml
@@ -162,6 +162,7 @@
+
2011090
0
419968
diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml
index ebec23d8729354ddbd6ef312a1167af711ac3893..df0f6e4eba34b9cf1806fffa2a85157c05d4f75c 100644
--- a/tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml
+++ b/tests/qemucapabilitiesdata/caps_2.12.0.s390x.xml
@@ -129,6 +129,7 @@
+
2012000
0
371055
diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml
index cb7a314f1fb9e6daff5d478d4658402b3c46ff15..3c7dadffcd8a5b4cd9f1e7508dd4c3ece0004470 100644
--- a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml
+++ b/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml
@@ -203,6 +203,7 @@
+
2011090
0
390813
diff --git a/tests/qemucapabilitiesdata/caps_2.9.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_2.9.0.ppc64.xml
index ba8db0e16c4f73d36ebf2efdeefef0b562c49498..4772d4f3e5fa1dc62a6bdc06d8770e5c770de137 100644
--- a/tests/qemucapabilitiesdata/caps_2.9.0.ppc64.xml
+++ b/tests/qemucapabilitiesdata/caps_2.9.0.ppc64.xml
@@ -148,6 +148,7 @@
+
2009000
0
346538
diff --git a/tests/qemucapabilitiesdata/caps_2.9.0.s390x.xml b/tests/qemucapabilitiesdata/caps_2.9.0.s390x.xml
index 2bcda54bc66f99f24348ebe59a3f27aa461ae8a5..b216c69906ad7927524c26ecd6c2f0896bb2635a 100644
--- a/tests/qemucapabilitiesdata/caps_2.9.0.s390x.xml
+++ b/tests/qemucapabilitiesdata/caps_2.9.0.s390x.xml
@@ -112,6 +112,7 @@
+
2009000
0
265159
diff --git a/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml
index 51aea1a00cab932b7d6d9f4cfe41615e797b553e..e070c1f40e54cde080e138e6f7504c809a69f829 100644
--- a/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml
+++ b/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml
@@ -194,6 +194,7 @@
+
2009000
0
320947