From: Eric Blake Subject: Re: Subject: [RFC PATCH v2] migration: calculate remaining pages accurately during the bulk stage Date: Wed, 5 Sep 2018 11:42:23 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Cc: "Dr. David Alan Gilbert" , quintela@redhat.com To: Quan Xu , kvm , qemu-devel@nongnu.org Return-path: In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel2=m.gmane.org@nongnu.org Sender: "Qemu-devel" List-Id: kvm.vger.kernel.org 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