From patchwork Fri Jul 19 02:23:45 2013
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pawit Pornkitprasan
X-Patchwork-Id: 260185
Return-Path:
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@bilbo.ozlabs.org
Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])
(using TLSv1 with cipher AES256-SHA (256/256 bits))
(Client did not present a certificate)
by ozlabs.org (Postfix) with ESMTPS id 0F74F2C008E
for ;
Fri, 19 Jul 2013 16:05:24 +1000 (EST)
Received: from localhost ([::1]:48622 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71) (envelope-from
)
id 1V03oe-00050k-UW
for incoming@patchwork.ozlabs.org; Fri, 19 Jul 2013 02:05:20 -0400
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)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=from:to:cc:subject:date:message-id:x-mailer;
bh=qxfxeJhtSCa/vO7Y/CxHGt7ihE0nh4iP/f8IN7HCKso=;
b=zjlfLcbH80rTHfd1mRU0JNYk9h9rQ51RJf2biOOp+Z2GX9FDRzVGhzuXOEs235HPeX
1X4yPGLbHx1RPpZEiPfHAcPNiCyygr7BPRVldPrYF7Wtu+bviztqQViOXVQPgtr0/6/V
INXaQCbATo3MYgmDv1+oYCTje8maCQiRQCGMtqprGfbEyGyISTUtfKPEv1YheHqcrdYi
y3Ibsnvyai4OPs8xk5Lvx0LaZsTJtDlhm0skKnitmtxy4uNUA/BFB7XKTWmMS89s4Joo
RBX6G52AyReVQNEUUHIWtqCyuU586JusxGp+pmnPZkou69P6GaYXdWYXdT5zXeJg9HQt
9Umw==
X-Received: by 10.66.234.71 with SMTP id uc7mr15756084pac.10.1374200693278;
Thu, 18 Jul 2013 19:24:53 -0700 (PDT)
Received: from localhost.localdomain ([163.220.3.131])
by mx.google.com with ESMTPSA id
is3sm10365651pbc.25.2013.07.18.19.24.51 for
(version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Thu, 18 Jul 2013 19:24:52 -0700 (PDT)
From: Pawit Pornkitprasan
To: qemu-devel@nongnu.org
Date: Fri, 19 Jul 2013 11:23:45 +0900
Message-Id: <1374200625-7125-1-git-send-email-p.pawit@gmail.com>
X-Mailer: git-send-email 1.8.1.2
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
(bad octet value).
X-Received-From: 2607:f8b0:400e:c03::22a
X-Mailman-Approved-At: Fri, 19 Jul 2013 02:05:06 -0400
Cc: Pawit Pornkitprasan ,
Ryousei Takano ,
Juan Quintela
Subject: [Qemu-devel] [PATCH] migration: send total time in QMP at
"completed" stage
X-BeenThere: qemu-devel@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org
Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org
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
Reviewed-by: Eric Blake
Reviewed-by: Orit Wasserman
---
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;