From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V00NM-0005DD-Q1 for qemu-devel@nongnu.org; Thu, 18 Jul 2013 22:25:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V00NK-0007H3-LM for qemu-devel@nongnu.org; Thu, 18 Jul 2013 22:24:56 -0400 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]:54766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V00NK-0007Gx-Ez for qemu-devel@nongnu.org; Thu, 18 Jul 2013 22:24:54 -0400 Received: by mail-pa0-f42.google.com with SMTP id rl6so3889081pac.29 for ; Thu, 18 Jul 2013 19:24:53 -0700 (PDT) From: Pawit Pornkitprasan Date: Fri, 19 Jul 2013 11:23:45 +0900 Message-Id: <1374200625-7125-1-git-send-email-p.pawit@gmail.com> Subject: [Qemu-devel] [PATCH] migration: send total time in QMP at "completed" stage List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Pawit Pornkitprasan , Ryousei Takano , Juan Quintela 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 --- migration.c | 1 + 1 file changed, 1 insertion(+) diff --git a/migration.c b/migration.c index 9f5a423..4c16f2e 100644 --- a/migration.c +++ b/migration.c @@ -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; -- 1.8.1.2