From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxasv-0004IL-BQ for qemu-devel@nongnu.org; Wed, 05 Sep 2018 12:42:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxasr-0004Cq-An for qemu-devel@nongnu.org; Wed, 05 Sep 2018 12:42:29 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47776 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fxasr-00049p-5h for qemu-devel@nongnu.org; Wed, 05 Sep 2018 12:42:25 -0400 References: From: Eric Blake Message-ID: Date: Wed, 5 Sep 2018 11:42:23 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Subject: [RFC PATCH v2] migration: calculate remaining pages accurately during the bulk stage List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Quan Xu , kvm , qemu-devel@nongnu.org Cc: "Dr. David Alan Gilbert" , quintela@redhat.com On 09/05/2018 09:17 AM, Quan Xu wrote: > From 7de4cc7c944bfccde0ef10992a7ec882fdcf0508 Mon Sep 17 00:00:00 2001 > From: Quan Xu > Date: Wed, 5 Sep 2018 22:06:58 +0800 > Subject: [RFC PATCH v2] migration: calculate remaining pages accurately= =20 > during the bulk stage >=20 > Since the bulk stage assumes in (migration_bitmap_find_dirty) that ever= y > page is dirty, initialize the number of dirty pages at the beggining of s/beggining/beginning/ > the iteration and then decrease it for each processed page. >=20 > Signed-off-by: Quan Xu > --- > =C2=A0migration/ram.c | 7 ++++++- > =C2=A01 file changed, 6 insertions(+), 1 deletion(-) >=20 --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org