From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXsWB-0001zD-FJ for qemu-devel@nongnu.org; Fri, 25 May 2012 07:17:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXsW6-0006FR-OZ for qemu-devel@nongnu.org; Fri, 25 May 2012 07:17:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXsW6-0006FE-GY for qemu-devel@nongnu.org; Fri, 25 May 2012 07:17:10 -0400 Message-ID: <4FBF6A30.90505@redhat.com> Date: Fri, 25 May 2012 13:17:04 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <4FB6821A.1080902@redhat.com> <4FBE3A89.8020702@redhat.com> <20120525094357.GC30110@stefanha-thinkpad.localdomain> In-Reply-To: <20120525094357.GC30110@stefanha-thinkpad.localdomain> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Block job commands in QEMU 1.2 [v2, including support for replication] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Eric Blake , qemu-devel , Ori Mamluk , Luiz Capitulino Il 25/05/2012 11:43, Stefan Hajnoczi ha scritto: > On Thu, May 24, 2012 at 03:41:29PM +0200, Paolo Bonzini wrote: >> Persistent dirty bitmap >> ======================= >> >> A persistent dirty bitmap can be used by management for two reasons. >> When mirroring is used for continuous replication of storage, to record >> I/O operations that happened while the replication server is not >> connected or unavailable. > > For incremental backups we also need a dirty bitmap API. This allows > backup software to determine which blocks are "dirty" in a snapshot. > The backup software will only copy out the dirty blocks. > > (For external snapshots the "dirty bitmap" is actually the qemu-io -c > map of is_allocated clusters. But for internal snapshots it would be a > diff of image metadata which results in a real bitmap.) Perhaps that be simply a new qemu-img subcommand? It should be possible to run it while the VM is offline. Then the file that is produced could be fed to blockdev-dirty-enable. Paolo > So it seems like a dirty bitmap API will be required for continuous > replication (so the server can find out what it missed) and for > incremental backup. If there is commonality here we should work > together so the same API can do both. > > Stefan >