aboutsummaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2015-12-16 11:47:36 +0000
committerAmit Shah <amit.shah@redhat.com>2016-01-13 16:02:13 +0530
commit4addcd4fdc94c369f4cd54f8e03396ff26fce34d (patch)
treecfff579d69a5e91c1cc0ae954102e968ec3c70ba /qapi
parent6ba996bb458f4620e62984f2561c270a636bb500 (diff)
downloadqemu-4addcd4fdc94c369f4cd54f8e03396ff26fce34d.zip
qemu-4addcd4fdc94c369f4cd54f8e03396ff26fce34d.tar.gz
qemu-4addcd4fdc94c369f4cd54f8e03396ff26fce34d.tar.bz2
Migration: Emit event at start of pass
Emit an event each time we sync the dirty bitmap on the source; this helps libvirt use postcopy by giving it a kick when it might be a good idea to start the postcopy. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Message-Id: <1450266458-3178-5-git-send-email-dgilbert@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/event.json13
1 files changed, 13 insertions, 0 deletions
diff --git a/qapi/event.json b/qapi/event.json
index f0cef01..390fd45 100644
--- a/qapi/event.json
+++ b/qapi/event.json
@@ -255,6 +255,19 @@
'data': {'status': 'MigrationStatus'}}
##
+# @MIGRATION_PASS
+#
+# Emitted from the source side of a migration at the start of each pass
+# (when it syncs the dirty bitmap)
+#
+# @pass: An incrementing count (starting at 1 on the first pass)
+#
+# Since: 2.6
+##
+{ 'event': 'MIGRATION_PASS',
+ 'data': { 'pass': 'int' } }
+
+##
# @ACPI_DEVICE_OST
#
# Emitted when guest executes ACPI _OST method.