Blame SOURCES/kvm-migration-send-total-time-in-QMP-at-completed-stage.patch

218e99
From b6ec816cb5032ff419a4c30f1a65ffb51250d52d Mon Sep 17 00:00:00 2001
218e99
From: Orit Wasserman <owasserm@redhat.com>
218e99
Date: Wed, 9 Oct 2013 10:09:13 +0200
218e99
Subject: [PATCH 18/25] migration: send total time in QMP at "completed" stage
218e99
218e99
RH-Author: Orit Wasserman <owasserm@redhat.com>
218e99
Message-id: <1381313355-15641-9-git-send-email-owasserm@redhat.com>
218e99
Patchwork-id: 54804
218e99
O-Subject: [RHEL7.0 qemu-kvm v2 08/10] migration: send total time in QMP at "completed" stage
218e99
Bugzilla: 921465
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
218e99
RH-Acked-by: Juan Quintela <quintela@redhat.com>
218e99
218e99
From: Pawit Pornkitprasan <p.pawit@gmail.com>
218e99
218e99
The "completed" stage sets total_time but not has_total_time and
218e99
thus it is not sent via QMP reply (but sent via HMP nevertheless)
218e99
218e99
Signed-off-by: Pawit Pornkitprasan <p.pawit@gmail.com>
218e99
Reviewed-by: Eric Blake <eblake@redhat.com>
218e99
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
218e99
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
218e99
(cherry picked from commit 00c14997cb95bf3e6c18c2264ef5e10642d89b3a)
218e99
---
218e99
 migration.c | 1 +
218e99
 1 file changed, 1 insertion(+)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 migration.c |    1 +
218e99
 1 files changed, 1 insertions(+), 0 deletions(-)
218e99
218e99
diff --git a/migration.c b/migration.c
218e99
index cc0e649..d69ac97 100644
218e99
--- a/migration.c
218e99
+++ b/migration.c
218e99
@@ -217,6 +217,7 @@ MigrationInfo *qmp_query_migrate(Error **errp)
218e99
 
218e99
         info->has_status = true;
218e99
         info->status = g_strdup("completed");
218e99
+        info->has_total_time = true;
218e99
         info->total_time = s->total_time;
218e99
         info->has_downtime = true;
218e99
         info->downtime = s->downtime;
218e99
-- 
218e99
1.7.1
218e99