Received: from eggs.gnu.org ([2001:4830:134:3::10]:46359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axZqN-0005k3-0u for qemu-devel@nongnu.org; Tue, 03 May 2016 08:54:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axZqB-00084B-G7 for qemu-devel@nongnu.org; Tue, 03 May 2016 08:54:21 -0400 From: Alberto Garcia In-Reply-To: <20160429151107.GL4350@noname.redhat.com> References: <20160429151107.GL4350@noname.redhat.com> Date: Tue, 03 May 2016 14:53:35 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v9 07/11] 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, qemu-block@nongnu.org, Max Reitz , Eric Blake , Stefan Hajnoczi On Fri 29 Apr 2016 05:11:07 PM CEST, Kevin Wolf wrote: >> + if (active == NULL) { >> + error_setg(errp, "Cannot find top level node for '%s'", device); >> + goto out; >> + } > > Hm... On the one hand, I really like that you don't expect the user to > provide the active layer in QMP. This allows us to remove this wart > once we have the new op blockers. Exactly, I still plan to stick to the API we discussed last year. > On the other hand, this code assumes that there is only a single > top-level node. This isn't necessarily true any more these days. Hmm... if you give me an example I can test that scenario. Berto