Received: from eggs.gnu.org ([2001:4830:134:3::10]:46242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqK8Q-0000ZO-DU for qemu-devel@nongnu.org; Thu, 07 May 2015 07:38:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqK8N-0002mv-3X for qemu-devel@nongnu.org; Thu, 07 May 2015 07:38:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqK8M-0002mr-Vi for qemu-devel@nongnu.org; Thu, 07 May 2015 07:38:31 -0400 From: Juan Quintela In-Reply-To: <1431023482-9044-1-git-send-email-liang.z.li@intel.com> (Liang Li's message of "Fri, 8 May 2015 02:31:22 +0800") References: <1431023482-9044-1-git-send-email-liang.z.li@intel.com> Date: Thu, 07 May 2015 13:38:28 +0200 Message-ID: <877fsksjm3.fsf@neno.neno> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] migration: Fix migration state update issue Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liang Li Cc: amit.shah@redhat.com, yang.z.zhang@intel.com, qemu-devel@nongnu.org Liang Li wrote: > If live migration is very fast and can be completed in 1 second, > the dirty_sync_count of MigrationState will not be updated. > Then you will see "dirty sync count: 0" in qemu monitor even if > the actual dirty sync count is not 0. > > Signed-off-by: Liang Li Reviewed-by: Juan Quintela Added to new pull request, thanks. > --- > arch_init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch_init.c b/arch_init.c > index 4c8fcee..a48f575 100644 > --- a/arch_init.c > +++ b/arch_init.c > @@ -599,8 +599,8 @@ static void migration_bitmap_sync(void) > s->dirty_bytes_rate = s->dirty_pages_rate * TARGET_PAGE_SIZE; > start_time = end_time; > num_dirty_pages_period = 0; > - s->dirty_sync_count = bitmap_sync_count; > } > + s->dirty_sync_count = bitmap_sync_count; > } > > /**