Skip to contentSkip to conversation

migration: send total time in QMP at "completed" stage

PATCH Applied Pawit Pornkitprasan 4 participants 4 messages Jul 19, 2013 – Jul 29, 2013

lore
Share & tools
lore
#0 lore raw

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)

---
 migration.c | 1 +
 1 file changed, 1 insertion(+)
migration.c +1 -0
index 9f5a423..4c16f2e 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Pawit Pornkitprasan

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)

---
 migration.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 14 lines
migration.c +1 -0
index 9f5a423..4c16f2e 100644
@@ -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
Reviewed-by on v1 1/1
#2 lore raw
In reply to Pawit Pornkitprasan
Quoted 14 lines · Pawit Pornkitprasan

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)

---
 migration.c | 1 +
 1 file changed, 1 insertion(+)
migration.c +0 -0
index 9f5a423..4c16f2e 100644

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;
#3 lore raw
In reply to Pawit Pornkitprasan
Quoted 4 lines · On Fri, 19 Jul 2013 11:23:45 +0900 Pawit Pornkitprasan <[email protected]>…

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)

Applied to the qmp branch, thanks.

Quoted 16 lines
---
 migration.c | 1 +
 1 file changed, 1 insertion(+)
migration.c +1 -0
index 9f5a423..4c16f2e 100644
@@ -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;