From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad7AG-0000ND-4l for qemu-devel@nongnu.org; Mon, 07 Mar 2016 21:14:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ad7AF-0000mV-DX for qemu-devel@nongnu.org; Mon, 07 Mar 2016 21:14:24 -0500 Date: Tue, 8 Mar 2016 10:14:12 +0800 From: Fam Zheng Message-ID: <20160308021412.GD7119@ad.usersys.redhat.com> References: <1456564857-29160-1-git-send-email-famz@redhat.com> <1456564857-29160-7-git-send-email-famz@redhat.com> <56DDD25F.2030903@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56DDD25F.2030903@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v3 06/15] block: Hide HBitmap in block dirty bitmap interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Vladimir Sementsov-Ogievskiy , qemu-devel@nongnu.org, qemu-block@nongnu.org On Mon, 03/07 20:11, Max Reitz wrote: > On 27.02.2016 10:20, Fam Zheng wrote: > > HBitmap is an implementation detail of block dirty bitmap that should be hidden > > from users. Introduce a BdrvDirtyBitmapIter to encapsulate the underlying > > HBitmapIter. > > > > A small difference in the interface is, before, an HBitmapIter is initialized > > in place, now the new BdrvDirtyBitmapIter must be dynamically allocated because > > the structure definition is in block.c. > > > > Two current users are converted too. > > > > Signed-off-by: Fam Zheng > > Reviewed-by: John Snow > > --- > > block/backup.c | 14 ++++++++------ > > block/dirty-bitmap.c | 39 +++++++++++++++++++++++++++++++++------ > > block/mirror.c | 14 ++++++++------ > > include/block/dirty-bitmap.h | 7 +++++-- > > include/qemu/typedefs.h | 1 + > > 5 files changed, 55 insertions(+), 20 deletions(-) > > I tried my best at fixing up the rebase conflicts, but block/mirror.c > has just changed too much ("mirror: Rewrite mirror_iteration") to be > able to pretend these fixes are trivial. Therefore, I'm afraid this > patch will need a rebase. Doing it now. Thanks! Fam