Received: from eggs.gnu.org ([2001:4830:134:3::10]:48108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYta6-00089J-Dc for qemu-devel@nongnu.org; Thu, 25 Feb 2016 05:55:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYta1-0007RE-TF for qemu-devel@nongnu.org; Thu, 25 Feb 2016 05:55:38 -0500 Received: from szxga01-in.huawei.com ([58.251.152.64]:19234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYta1-0007Qt-5o for qemu-devel@nongnu.org; Thu, 25 Feb 2016 05:55:33 -0500 References: <1456394631-18010-1-git-send-email-dgilbert@redhat.com> From: Hailiang Zhang Message-ID: <56CEDD8F.3070605@huawei.com> Date: Thu, 25 Feb 2016 18:55:11 +0800 MIME-Version: 1.0 In-Reply-To: <1456394631-18010-1-git-send-email-dgilbert@redhat.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Postcopy: Fix sync count in info migrate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" , qemu-devel@nongnu.org, amit.shah@redhat.com, quintela@redhat.com, jdenemar@redhat.com Cc: peter.huangpeng@huawei.com On 2016/2/25 18:03, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > I'd missed the sync count off in the postcopy case. > > Signed-off-by: Dr. David Alan Gilbert > --- > migration/migration.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/migration/migration.c b/migration/migration.c > index fc5e50b..34d3e5f 100644 > --- a/migration/migration.c > +++ b/migration/migration.c > @@ -626,6 +626,7 @@ MigrationInfo *qmp_query_migrate(Error **errp) > info->ram->normal_bytes = norm_mig_bytes_transferred(); > info->ram->dirty_pages_rate = s->dirty_pages_rate; > info->ram->mbps = s->mbps; > + info->ram->dirty_sync_count = s->dirty_sync_count; > > if (blk_mig_active()) { > info->has_disk = true; > Reviewed-by: zhanghailiang I noticed that, the stats of 'POSTCOPY_ACTIVE' is almost the copy of 'ACTIVE' case. Maybe we can simplify it.