migration: send total time in QMP at "completed" stage
PATCH 1/1 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 <[email protected]>
--- migration.c | 1 + 1 file changed, 1 insertion(+)
migration.c +1 -0
@@ -219,6 +219,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;
Signature · 1 line
1.8.1.2
Quoted 7 lines · Pawit Pornkitprasan
The "completed" stage sets
total_timebut nothas_total_timeand thus it is not sent via QMP reply (but sent via HMP nevertheless)Signed-off-by Pawit Pornkitprasan <[email protected]>--- migration.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Eric Blake <[email protected]>
Quoted 14 lines
migration.c +1
-0@@ -219,6 +219,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;
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 14 lines · Pawit Pornkitprasan
The "completed" stage sets
total_timebut nothas_total_timeand thus it is not sent via QMP reply (but sent via HMP nevertheless)Signed-off-by Pawit Pornkitprasan <[email protected]>--- migration.c | 1 + 1 file changed, 1 insertion(+)migration.c +0
-0
migration.c MigrationInfo *qmp_query_migrate(Error **errp) · line 225
Quoted 7 lines
migration.c +1
-0@@ -219,6 +219,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;
Reviewed-by Orit Wasserman <[email protected]>
Luiz Capitulino
AppliedQuoted 4 lines · On Fri, 19 Jul 2013 11:23:45 +0900 Pawit Pornkitprasan <[email protected]>…
The "completed" stage sets
total_timebut nothas_total_timeand thus it is not sent via QMP reply (but sent via HMP nevertheless)Signed-off-by Pawit Pornkitprasan <[email protected]>
Applied to the qmp branch, thanks.
Quoted 16 lines
--- migration.c | 1 + 1 file changed, 1 insertion(+)migration.c +1
-0@@ -219,6 +219,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;