From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1ppv-0005l3-62 for qemu-devel@nongnu.org; Thu, 26 Nov 2015 01:15:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1ppu-0006fi-C0 for qemu-devel@nongnu.org; Thu, 26 Nov 2015 01:15:19 -0500 Date: Thu, 26 Nov 2015 14:15:08 +0800 From: Fam Zheng Message-ID: <20151126061508.GH14630@ad.usersys.redhat.com> References: <1448425160-26092-1-git-send-email-famz@redhat.com> <56555BEB.8080105@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56555BEB.8080105@virtuozzo.com> Subject: Re: [Qemu-devel] [PATCH v3 0/4] Bitmap clean-up patches for 2.6 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladimir Sementsov-Ogievskiy Cc: Kevin Wolf , qemu-block@nongnu.org, Jeff Cody , qemu-devel@nongnu.org, mreitz@redhat.com, pbonzini@redhat.com, jsnow@redhat.com On Wed, 11/25 09:57, Vladimir Sementsov-Ogievskiy wrote: > Hmm, stop. Very bad thing (sorry, that I didn't realize it before): > > This breaks my dirty bitmap migration series with its meta bitmaps. > Meta bitmap is an additional HBitmap in BdrvDirtyBitmap, which > tracks dirtiness of this BdrvDirtyBitmap. And it (meta bitmap) have > its own granularity of course. Or we will have to maintain > additional meta_gran_shift and lots of duplicated code.. > > If we speak about splitting granularity out of HBitmap, then the > most true way should be > > struct HBitmapGranuled { > struct HBitmap *hb; > uint32_t gran_shift; > } > > with all supporting functions and iterators. Then it's not worth making this change, let's drop patch 3 & 4 for now. Fam