diff options
author | Pawit Pornkitprasan <p.pawit@gmail.com> | 2013-07-19 11:23:45 +0900 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2013-08-01 09:40:46 -0400 |
commit | 00c14997cb95bf3e6c18c2264ef5e10642d89b3a (patch) | |
tree | a424c82da97f7cde66ffa62cdb137c2ea1b7bba4 | |
parent | 1197cbb9eda1dc82e2fa1815ca62bc3de158353e (diff) | |
download | qemu-00c14997cb95bf3e6c18c2264ef5e10642d89b3a.zip qemu-00c14997cb95bf3e6c18c2264ef5e10642d89b3a.tar.gz qemu-00c14997cb95bf3e6c18c2264ef5e10642d89b3a.tar.bz2 |
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 <p.pawit@gmail.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
-rw-r--r-- | migration.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/migration.c b/migration.c index 9fc7294..3f682cd 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; |