[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/5] QMP: Emit migration events on incoming migratio
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 4/5] QMP: Emit migration events on incoming migration |
Date: |
Mon, 24 May 2010 10:25:28 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
migration.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/migration.c b/migration.c
index 6ab5d90..7fba993 100644
--- a/migration.c
+++ b/migration.c
@@ -56,10 +56,13 @@ int qemu_start_incoming_migration(const char *uri)
void process_incoming_migration(QEMUFile *f)
{
+ monitor_protocol_event(QEVENT_MIGRATION_STARTED, NULL);
if (qemu_loadvm_state(f) < 0) {
+ monitor_protocol_event(QEVENT_MIGRATION_FAILED, NULL);
fprintf(stderr, "load of migration failed\n");
exit(0);
}
+ monitor_protocol_event(QEVENT_MIGRATION_ENDED, NULL);
qemu_announce_self();
DPRINTF("successfully loaded vm state\n");
--
1.6.6.1