aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 16:33:23 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:19:49 +0100
commitbce911ce263e78d13fad5415881a5310ead6c73f (patch)
treec167f5aee7729f0a19941521ad01245181bd2989
parente6bcb080f965d0a71acd859c8a35e0652b5c366e (diff)
downloadqemu-bce911ce263e78d13fad5415881a5310ead6c73f.zip
qemu-bce911ce263e78d13fad5415881a5310ead6c73f.tar.gz
qemu-bce911ce263e78d13fad5415881a5310ead6c73f.tar.bz2
qmp-events: move 'MIGRATION' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r--docs/qmp-events.txt15
-rw-r--r--qapi/event.json7
2 files changed, 7 insertions, 15 deletions
diff --git a/docs/qmp-events.txt b/docs/qmp-events.txt
index 0574a21..d61ab1d 100644
--- a/docs/qmp-events.txt
+++ b/docs/qmp-events.txt
@@ -131,21 +131,6 @@ Flush operation:
Note: this event is rate-limited.
-MIGRATION
----------
-
-Emitted when a migration event happens
-
-Data: None.
-
- - "status": migration status
- See MigrationStatus in ~/qapi-schema.json for possible values
-
-Example:
-
-{"timestamp": {"seconds": 1432121972, "microseconds": 744001},
- "event": "MIGRATION", "data": {"status": "completed"}}
-
MIGRATION_PASS
--------------
diff --git a/qapi/event.json b/qapi/event.json
index 5484324..ebf45cf 100644
--- a/qapi/event.json
+++ b/qapi/event.json
@@ -410,6 +410,13 @@
# @status: @MigrationStatus describing the current migration status.
#
# Since: 2.4
+#
+# Example:
+#
+# <- {"timestamp": {"seconds": 1432121972, "microseconds": 744001},
+# "event": "MIGRATION",
+# "data": {"status": "completed"} }
+#
##
{ 'event': 'MIGRATION',
'data': {'status': 'MigrationStatus'}}