Received: from eggs.gnu.org ([2001:4830:134:3::10]:41437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anpnu-0001eP-SD for qemu-devel@nongnu.org; Wed, 06 Apr 2016 11:55:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anpnt-0004s2-VP for qemu-devel@nongnu.org; Wed, 06 Apr 2016 11:55:38 -0400 From: Alberto Garcia In-Reply-To: <20160406095947.GB5098@noname.redhat.com> References: <1459783562-28859-1-git-send-email-kwolf@redhat.com> <20160406095947.GB5098@noname.redhat.com> Date: Wed, 06 Apr 2016 17:55:23 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH for-2.6] block: Forbid I/O throttling on nodes with multiple parents for 2.6 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: pbonzini@redhat.com, stefanha@redhat.com, qemu-block@nongnu.org, qemu-devel@nongnu.org On Wed 06 Apr 2016 11:59:47 AM CEST, Kevin Wolf wrote: > Let me draw some ASCII art. I'm drawing I/O throttling like a filter > to make the difference clear; in reality it's part of the BDS now or > of the BB in 2.7, so don't let this confuse you. > > Let's assume these command line options: > > -drive file=backimg.img,if=none,id=backing,iops=1024 > -drive file=overlay.qcow2,id=overlay,backing=backing > > If we didn't catch this configuration and error out, this is what we > would end up with in 2.6: > > [BB] overlay > | > | > [BDS] qcow2 [BB] backing > | | > +--------------------+ > . | > . I/O throttling > . | > [BDS] raw > . > . > . I see, thanks for the explanation! But what's the use of having a BlockBackend on a node that is used as a backing image? Is it because "we allow this so let's prevent the user from doing weird things", or is there anything useful we can do with it? Berto