Received: from eggs.gnu.org ([2001:4830:134:3::10]:56532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDrpl-0007zf-9A for qemu-devel@nongnu.org; Mon, 26 Aug 2013 04:07:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VDrpf-0007ew-AX for qemu-devel@nongnu.org; Mon, 26 Aug 2013 04:07:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDrpf-0007es-2q for qemu-devel@nongnu.org; Mon, 26 Aug 2013 04:07:27 -0400 Date: Mon, 26 Aug 2013 16:07:22 +0800 From: Fam Zheng Message-ID: <20130826080722.GA18161@T430s.nay.redhat.com> References: <1375071932-31627-1-git-send-email-famz@redhat.com> <1375071932-31627-4-git-send-email-famz@redhat.com> <20130821130203.GB11975@stefanha-thinkpad.redhat.com> <20130822085320.GA14691@T430s.nay.redhat.com> <5215D84D.2010005@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5215D84D.2010005@redhat.com> Subject: Re: [Qemu-devel] [RFC PATCH 3/4] qmp: Add "snapshot=" option to nbd-server-add Reply-To: famz@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Stefan Hajnoczi , imain@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, Paolo Bonzini On Thu, 08/22 11:22, Paolo Bonzini wrote: > Il 22/08/2013 10:53, Fam Zheng ha scritto: > >> > This is handy but only works if the QEMU process has permission to > >> > create temporary files. > >> > > > Yes, this is a shortcut, it has this limitation, but the good side is > > it's easy to get and no other dependency. > > > > To avoid creating file, we'll need blockdev-add to override backing_hd, > > and blockdev-backup to use an existing BDS as target, then we simply use > > current nbd-server-add to export it. > > > > This series is still RFC, with above said, we still need to decide which > > is the way we (QEMU and libvirt) want for 1.7. any thoughts? > > I think this was the initial design, but Kevin already said he didn't > like the idea. > > (Also, if you do this you have to add nbd-server-add to qmp-transaction, > to atomically start fleecing of multiple devices). > Kevin, The downside of this is unresolvable (create file in QEMU), so I am giving up this and back to blockdev-add & blockdev-backup interface. So I guess I'm depending on your blockdev-add command patches, do you have a solution for overriding backing_hd there yet? If yes, do you have a working branch that I can rebase my blockdev-backup onto? Thanks. Fam