From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUvEu-0001aM-NX for qemu-devel@nongnu.org; Wed, 24 Apr 2013 04:39:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUvEt-0008Rr-Mj for qemu-devel@nongnu.org; Wed, 24 Apr 2013 04:39:44 -0400 Received: from mail-ee0-f45.google.com ([74.125.83.45]:34337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUvEt-0008Qe-Ge for qemu-devel@nongnu.org; Wed, 24 Apr 2013 04:39:43 -0400 Received: by mail-ee0-f45.google.com with SMTP id l10so605799eei.18 for ; Wed, 24 Apr 2013 01:39:42 -0700 (PDT) Date: Wed, 24 Apr 2013 10:39:40 +0200 From: Stefan Hajnoczi Message-ID: <20130424083940.GC20971@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Adding Disk-Level Introspection to QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wolfgang Richter Cc: qemu-devel On Tue, Apr 23, 2013 at 03:11:26PM -0400, Wolfgang Richter wrote: > On Tue, Apr 23, 2013 at 2:31 PM, Wolfgang Richter wrote: > > > On Tue, Apr 23, 2013 at 2:21 PM, Stefan Hajnoczi wrote: > > > >> Eric's suggestion to use NBD makes sense to me. The block-backup code > >> can be extended fairly easier using sync mode=none (do not perform a > >> background copy of the entire disk) and by disabling the bitmap > >> (essentially "tap" mode). > > > > > Also, as another thought, I think I can actually use the bitmap to implement > an optimization. In my code, I already use a bitmap to determine which > sectors I want to introspect (ignoring portions of the disk greatly reduces > required bandwidth and overhead; swap space for example isn't generally > interesting unless you can interpret memory as well). So I think I can > adapt > my code here as well. Cool. By the way, do you actually care about the data being written or just which sectors were touched? Stefan