From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zga7Q-0001n2-AN for qemu-devel@nongnu.org; Mon, 28 Sep 2015 11:13:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zga7L-0005Di-96 for qemu-devel@nongnu.org; Mon, 28 Sep 2015 11:13:32 -0400 Date: Mon, 28 Sep 2015 16:13:23 +0100 From: Stefan Hajnoczi Message-ID: <20150928151323.GA19184@stefanha-thinkpad.redhat.com> References: <9ae0ce111c95c6f76e872b12b2a6af895f5cfab6.1443410673.git.jcody@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ae0ce111c95c6f76e872b12b2a6af895f5cfab6.1443410673.git.jcody@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 1/3] block: allow creation of detached dirty bitmaps List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeff Cody Cc: kwolf@redhat.com, qemu-block@nongnu.org, qemu-devel@nongnu.org, stefanha@redhat.com On Sun, Sep 27, 2015 at 11:29:16PM -0400, Jeff Cody wrote: > This allows the creation of detached dirty bitmaps, so that the > block driver dirty bitmaps can be used without inserting the > bitmap into the dirty bitmap list for a BDS. > > To free a bitmap that was created "detached = true", call > bdrv_release_dirty_bitmap() with the BlockDriverState argument > as NULL. I wonder if just disabling the bitmap with bdrv_disable_dirty_bitmap() is enough?