aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2020-09-24 17:27:07 +0200
committerKevin Wolf <kwolf@redhat.com>2020-10-02 15:46:40 +0200
commit1a9f7a804f52caee6bc6769a8bb0a018e6c8ec81 (patch)
tree7e490524d05050c6c2f07b71fce77f4952736ef9 /qapi
parent3c3bc462adeb561f5dfdcbb84ae691c95ccef916 (diff)
downloadqemu-1a9f7a804f52caee6bc6769a8bb0a018e6c8ec81.zip
qemu-1a9f7a804f52caee6bc6769a8bb0a018e6c8ec81.tar.gz
qemu-1a9f7a804f52caee6bc6769a8bb0a018e6c8ec81.tar.bz2
block/export: Add BLOCK_EXPORT_DELETED event
Clients may want to know when an export has finally disappeard (block-export-del returns earlier than that in the general case), so add a QAPI event for it. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20200924152717.287415-22-kwolf@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/block-export.json12
1 files changed, 12 insertions, 0 deletions
diff --git a/qapi/block-export.json b/qapi/block-export.json
index 3d22527..76e014c 100644
--- a/qapi/block-export.json
+++ b/qapi/block-export.json
@@ -233,3 +233,15 @@
##
{ 'command': 'block-export-del',
'data': { 'id': 'str', '*mode': 'BlockExportRemoveMode' } }
+
+##
+# @BLOCK_EXPORT_DELETED:
+#
+# Emitted when a block export is removed and its id can be reused.
+#
+# @id: Block export id.
+#
+# Since: 5.2
+##
+{ 'event': 'BLOCK_EXPORT_DELETED',
+ 'data': { 'id': 'str' } }