summaryrefslogtreecommitdiffstats
path: root/qapi/migration.json
diff options
context:
space:
mode:
authorJens Freimann2019-10-29 12:48:59 +0100
committerMichael S. Tsirkin2019-10-29 23:55:26 +0100
commitd328e6f37229e86a5e0059a98c4acfa9be9c8783 (patch)
tree3ed5d8d5ed9c5aad483407aaaf365b82bebdd961 /qapi/migration.json
parentpci: mark device having guest unplug request pending (diff)
downloadqemu-d328e6f37229e86a5e0059a98c4acfa9be9c8783.tar.gz
qemu-d328e6f37229e86a5e0059a98c4acfa9be9c8783.tar.xz
qemu-d328e6f37229e86a5e0059a98c4acfa9be9c8783.zip
qapi: add unplug primary event
This event is emitted when we sent a request to unplug a failover primary device from the Guest OS and it includes the device id of the primary device. Signed-off-by: Jens Freimann <jfreimann@redhat.com> Message-Id: <20191029114905.6856-6-jfreimann@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qapi/migration.json')
-rw-r--r--qapi/migration.json19
1 files changed, 19 insertions, 0 deletions
diff --git a/qapi/migration.json b/qapi/migration.json
index 82feb5bd39..e9e7a97c03 100644
--- a/qapi/migration.json
+++ b/qapi/migration.json
@@ -1448,3 +1448,22 @@
# Since: 3.0
##
{ 'command': 'migrate-pause', 'allow-oob': true }
+
+##
+# @UNPLUG_PRIMARY:
+#
+# Emitted from source side of a migration when migration state is
+# WAIT_UNPLUG. Device was unplugged by guest operating system.
+# Device resources in QEMU are kept on standby to be able to re-plug it in case
+# of migration failure.
+#
+# @device-id: QEMU device id of the unplugged device
+#
+# Since: 4.2
+#
+# Example:
+# {"event": "UNPLUG_PRIMARY", "data": {"device-id": "hostdev0"} }
+#
+##
+{ 'event': 'UNPLUG_PRIMARY',
+ 'data': { 'device-id': 'str' } }