From: Pawit Pornkitprasan
Date: Fri, 19 Jul 2013 02:23:45 +0000 (+0900)
Subject: migration: send total time in QMP at "completed" stage
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=00c14997cb95bf3e6c18c2264ef5e10642d89b3a;p=qemu.git
migration: send total time in QMP at "completed" stage
The "completed" stage sets total_time but not has_total_time and
thus it is not sent via QMP reply (but sent via HMP nevertheless)
Signed-off-by: Pawit Pornkitprasan
Reviewed-by: Eric Blake
Reviewed-by: Orit Wasserman
Signed-off-by: Luiz Capitulino
---
diff --git a/migration.c b/migration.c
index 9fc72943fb..3f682cdc7f 100644
--- a/migration.c
+++ b/migration.c
@@ -231,6 +231,7 @@ MigrationInfo *qmp_query_migrate(Error **errp)
info->has_status = true;
info->status = g_strdup("completed");
+ info->has_total_time = true;
info->total_time = s->total_time;
info->has_downtime = true;
info->downtime = s->downtime;