From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0wAB-0007eZ-QI for qemu-devel@nongnu.org; Mon, 13 Aug 2012 11:02:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0wA6-0007jk-34 for qemu-devel@nongnu.org; Mon, 13 Aug 2012 11:02:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0wA5-0007jd-RU for qemu-devel@nongnu.org; Mon, 13 Aug 2012 11:02:34 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7DF2XEh024710 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 13 Aug 2012 11:02:33 -0400 Message-ID: <50291708.1090108@redhat.com> Date: Mon, 13 Aug 2012 09:02:32 -0600 From: Eric Blake MIME-Version: 1.0 References: <1344855057-32509-1-git-send-email-quintela@redhat.com> <1344855057-32509-4-git-send-email-quintela@redhat.com> In-Reply-To: <1344855057-32509-4-git-send-email-quintela@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig014B85511017CC1566890741" Subject: Re: [Qemu-devel] [PATCH 3/7] migration: print total downtime for final phase of migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org, lcapitulino@redhat.com This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig014B85511017CC1566890741 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/13/2012 04:50 AM, Juan Quintela wrote: > Signed-off-by: Juan Quintela > --- > hmp.c | 4 ++++ > migration.c | 5 ++++- > migration.h | 1 + > qapi-schema.json | 6 +++++- > 4 files changed, 14 insertions(+), 2 deletions(-) >=20 > diff --git a/hmp.c b/hmp.c > index c0b0a10..10fee1b 100644 > --- a/hmp.c > +++ b/hmp.c > @@ -151,6 +151,10 @@ void hmp_info_migrate(Monitor *mon) > monitor_printf(mon, "Migration status: %s\n", info->status); > monitor_printf(mon, "total time: %" PRIu64 " milliseconds\n", > info->total_time); > + if (strcmp(info->status, "completed") =3D=3D 0) { > + monitor_printf(mon, "downtime: %" PRIu64 " milliseconds\n"= , > + info->downtime); > + } Very nice stat - useful at showing how 'live' a live migration really is.= --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig014B85511017CC1566890741 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJQKRcIAAoJEKeha0olJ0Nqu24H/R/mOQHEeCMuHqTftEpUbNyh lry22FTNHEps60nHs33hxeH+9w2PVNr8khmxWaATbsGP5auGGKBszboaknBpM8vg KbYhMDfD4eUXuS561isgKy3jrt+2Gz3xwUy9MZ7QLPIohmmzJ6nPa2q8F1WnlDls /msjUyQUDJ06IM6yZEJxCFnP8ujoNUEK3PUK6Vsbv4Sw26eezZajjldz3/dJy8rW OIS0+bmjLR+7n4h01CaKKPBWt1FyanNe27BDwR50QNSR4bjvQ7QqS9Y6c6mnmNRp hSE4xy8n9nT5XQVILQFXg0rp5x8RkoL4rrnPSLYWkHw+8q47V6JWaUx8bBkcKO4= =39fw -----END PGP SIGNATURE----- --------------enig014B85511017CC1566890741--