]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Add dump completed event to the capabilities
authorJohn Ferlan <jferlan@redhat.com>
Fri, 17 Nov 2017 13:46:27 +0000 (08:46 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 2 Feb 2018 20:19:14 +0000 (15:19 -0500)
Add the DUMP_COMPLETED check to the capabilities. This is the
mechanism used to determine whether the dump-guest-memory command
can support the "-detach" option and thus be able to wait on the
event and allow for a query of the progress of the dump.

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
18 files changed:
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_2.10.0-gicv2.aarch64.xml
tests/qemucapabilitiesdata/caps_2.10.0-gicv3.aarch64.xml
tests/qemucapabilitiesdata/caps_2.10.0.ppc64.xml
tests/qemucapabilitiesdata/caps_2.10.0.s390x.xml
tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml
tests/qemucapabilitiesdata/caps_2.6.0-gicv3.aarch64.xml
tests/qemucapabilitiesdata/caps_2.6.0.ppc64.xml
tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.7.0.s390x.xml
tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.8.0.s390x.xml
tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml
tests/qemucapabilitiesdata/caps_2.9.0.ppc64.xml
tests/qemucapabilitiesdata/caps_2.9.0.s390x.xml
tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml

index 5e03447baa105041efeeea5203d5a9a9bb7f86d8..b5eb8cf46a5297c647b6148d563cc8a44845d047 100644 (file)
@@ -458,6 +458,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
               /* 280 */
               "pl011",
               "machine.pseries.max-cpu-compat",
+              "dump-completed",
     );
 
 
@@ -1593,6 +1594,7 @@ struct virQEMUCapsStringFlags virQEMUCapsEvents[] = {
     { "VSERPORT_CHANGE", QEMU_CAPS_VSERPORT_CHANGE },
     { "DEVICE_TRAY_MOVED", QEMU_CAPS_DEVICE_TRAY_MOVED },
     { "BLOCK_WRITE_THRESHOLD", QEMU_CAPS_BLOCK_WRITE_THRESHOLD },
+    { "DUMP_COMPLETED", QEMU_CAPS_DUMP_COMPLETED },
 };
 
 struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
index 3dfc77f8725cf58eaba8a82664f64c116a9ff485..c2ec2be19311d7c1958ec1650536a2e5f04e2c79 100644 (file)
@@ -443,6 +443,7 @@ typedef enum {
     /* 280 */
     QEMU_CAPS_DEVICE_PL011, /* -device pl011 (not user-instantiable) */
     QEMU_CAPS_MACHINE_PSERIES_MAX_CPU_COMPAT, /* -machine pseries,max-cpu-compat= */
+    QEMU_CAPS_DUMP_COMPLETED, /* DUMP_COMPLETED event */
 
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;
index 51d19aacb194db36592cdd2db8ccf9f65372f0e3..588bb0d4d97874f24cdc29f6ec224e1ca71324aa 100644 (file)
   <flag name='iscsi.password-secret'/>
   <flag name='isa-serial'/>
   <flag name='pl011'/>
+  <flag name='dump-completed'/>
   <version>2010000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>304138</microcodeVersion>
index b8309f35b32a869713a0f90426c7c6b73cc6bd06..a88a4609df52bd8dc2e091060f55f9cdf391a118 100644 (file)
   <flag name='iscsi.password-secret'/>
   <flag name='isa-serial'/>
   <flag name='pl011'/>
+  <flag name='dump-completed'/>
   <version>2010000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>304138</microcodeVersion>
index 7ca5234bb75426cf9d5b7c5ad6f909b9abb9afe0..04e2e770918a8a83035142c97e4b806966f178e1 100644 (file)
   <flag name='iscsi.password-secret'/>
   <flag name='isa-serial'/>
   <flag name='machine.pseries.max-cpu-compat'/>
+  <flag name='dump-completed'/>
   <version>2010000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>383421</microcodeVersion>
index e9115d304ed4a5840d789d61c9b99b109ec1432e..bbd351c0a2cb5674cde144943ec2fc694907eabe 100644 (file)
   <flag name='numa.dist'/>
   <flag name='disk-share-rw'/>
   <flag name='iscsi.password-secret'/>
+  <flag name='dump-completed'/>
   <version>2010000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>304153</microcodeVersion>
index 1687417081494b8e11de5083f26de361a77bbda3..91ab3b0838f47f86e38cfd6bfa304c1581f72c91 100644 (file)
   <flag name='disk-share-rw'/>
   <flag name='iscsi.password-secret'/>
   <flag name='isa-serial'/>
+  <flag name='dump-completed'/>
   <version>2010000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>345185</microcodeVersion>
index 4cdd894a970e655f477545e5623320d126e637c1..7f8721bec97af639d84884dbf18f3742e211e47d 100644 (file)
   <flag name='virtio-gpu.max_outputs'/>
   <flag name='isa-serial'/>
   <flag name='pl011'/>
+  <flag name='dump-completed'/>
   <version>2006000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>228838</microcodeVersion>
index 5655af7d3d0d2d2e6921cfbd43f0c95ddbcdf27b..a6ba48ec73e30fa32142a15065c11b4401529c1e 100644 (file)
   <flag name='virtio-gpu.max_outputs'/>
   <flag name='isa-serial'/>
   <flag name='pl011'/>
+  <flag name='dump-completed'/>
   <version>2006000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>228838</microcodeVersion>
index 31701bb40bf93a9fa5d9076d833d88cc4081fb53..eb6c63c6e9719bd19804d19678244958e7ebe863 100644 (file)
   <flag name='virtio-gpu.max_outputs'/>
   <flag name='spapr-vty'/>
   <flag name='isa-serial'/>
+  <flag name='dump-completed'/>
   <version>2006000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>263602</microcodeVersion>
index 6ae19ffd363035fc596054687ea909e04bbc4e3b..e7a43ed3e8e4c2f01b6b41b28739173484990006 100644 (file)
   <flag name='chardev-reconnect'/>
   <flag name='virtio-gpu.max_outputs'/>
   <flag name='isa-serial'/>
+  <flag name='dump-completed'/>
   <version>2006000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>227579</microcodeVersion>
index b6ec680d5ca5919e899cf23052d213ecd39bd437..c881cf326c8203a6e40f8155030becb35b48cc3c 100644 (file)
   <flag name='virtio-gpu.max_outputs'/>
   <flag name='virtio-blk.num-queues'/>
   <flag name='sclplmconsole'/>
+  <flag name='dump-completed'/>
   <version>2007000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>217559</microcodeVersion>
index 294ac126e591da320dbe8757575d022c2539c8ef..6e868d544c85c6276953595f6301a2d9e27b7ad4 100644 (file)
   <flag name='virtio-gpu.max_outputs'/>
   <flag name='virtio-blk.num-queues'/>
   <flag name='isa-serial'/>
+  <flag name='dump-completed'/>
   <version>2007000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>239276</microcodeVersion>
index d788ad206e3ef8b8ef2828723a42cabb78d2f894..efed9881dba8fcd316c9c6adefb98b7be6cae3ec 100644 (file)
   <flag name='virtio-gpu.max_outputs'/>
   <flag name='virtio-blk.num-queues'/>
   <flag name='sclplmconsole'/>
+  <flag name='dump-completed'/>
   <version>2007093</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>242460</microcodeVersion>
index 156563d99ae7d5ccf94d888b9ab1f88bba083fbf..4018f586804c063a5dcbf6252400a3de6d5fbcf5 100644 (file)
   <flag name='virtio-gpu.max_outputs'/>
   <flag name='virtio-blk.num-queues'/>
   <flag name='isa-serial'/>
+  <flag name='dump-completed'/>
   <version>2008000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>255931</microcodeVersion>
index cca643a3a5b7468f2631736d3f5273f5c3e3957e..97adc3856ebef69c05c8ef03005b301ef33a410f 100644 (file)
   <flag name='disk-share-rw'/>
   <flag name='iscsi.password-secret'/>
   <flag name='isa-serial'/>
+  <flag name='dump-completed'/>
   <version>2009000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>347135</microcodeVersion>
index 5d0f0aa6c6ce73ffb36ac6c24bf73645d4d9a1c7..3ba8e1043b52915f0d5b7b8b8d25ee2768786480 100644 (file)
   <flag name='sclplmconsole'/>
   <flag name='disk-share-rw'/>
   <flag name='iscsi.password-secret'/>
+  <flag name='dump-completed'/>
   <version>2009000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>265878</microcodeVersion>
index 907f543ee38c815112037a255f7bea33a3903ea0..b6ecf7fbde28dacfe4f6a6da8fcbc714c17f9a71 100644 (file)
   <flag name='disk-share-rw'/>
   <flag name='iscsi.password-secret'/>
   <flag name='isa-serial'/>
+  <flag name='dump-completed'/>
   <version>2009000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>321194</microcodeVersion>