Received: from eggs.gnu.org ([2001:4830:134:3::10]:38965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTXRb-0007it-F2 for qemu-devel@nongnu.org; Thu, 05 Mar 2015 10:12:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTXRW-00070L-Dk for qemu-devel@nongnu.org; Thu, 05 Mar 2015 10:12:11 -0500 Received: from smtp3.mundo-r.com ([212.51.32.191]:35984 helo=smtp4.mundo-r.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTXRW-0006zz-7s for qemu-devel@nongnu.org; Thu, 05 Mar 2015 10:12:06 -0500 Date: Thu, 5 Mar 2015 16:12:03 +0100 From: Alberto Garcia Message-ID: <20150305151203.GB750@igalia.com> References: <49b845c4a362ffd64ec78bbe0b165cd7addd2a4b.1424439295.git.berto@igalia.com> <20150305140958.GE5427@noname.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150305140958.GE5427@noname.redhat.com> Subject: Re: [Qemu-devel] [PATCH 2/3] block: Add QMP support for streaming to an intermediate layer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org, Stefan Hajnoczi On Thu, Mar 05, 2015 at 03:09:58PM +0100, Kevin Wolf wrote: > > { 'command': 'block-stream', > > - 'data': { 'device': 'str', '*base': 'str', '*backing-file': 'str', > > - '*speed': 'int', '*on-error': 'BlockdevOnError' } } > > + 'data': { 'device': 'str', '*base': 'str', '*top': 'str', > > + '*backing-file': 'str', '*speed': 'int', > > + '*on-error': 'BlockdevOnError' } } > A better interface would probably be to allow node names for > 'device' and leave everything else as it is. That's possible, but if the API is the same how does libvirt know if streaming to an intermediate node is possible or not? > There is no point in specifying some root node as 'device' that > isn't actually involved in the operation; worse, it isn't even > possible in the general case because 'top' could have multiple > users/parents. The latter is actually a good point, if 'top' is used by 2+ parents then it makes sense that the ownership of the block job in in 'top', not in the root node. I think I will need to investigate the consequences of that. Berto