From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQ0z9-0001x5-Kf for qemu-devel@nongnu.org; Mon, 23 Feb 2015 16:56:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQ0z4-0003Ou-1g for qemu-devel@nongnu.org; Mon, 23 Feb 2015 16:56:15 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQ0z3-0003Ok-QN for qemu-devel@nongnu.org; Mon, 23 Feb 2015 16:56:09 -0500 Message-ID: <54EBA176.3080706@redhat.com> Date: Mon, 23 Feb 2015 16:53:58 -0500 From: Max Reitz MIME-Version: 1.0 References: <1423710438-14377-1-git-send-email-wency@cn.fujitsu.com> <1423710438-14377-10-git-send-email-wency@cn.fujitsu.com> In-Reply-To: <1423710438-14377-10-git-send-email-wency@cn.fujitsu.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 09/14] block: give backing image its own BlockBackend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wen Congyang , qemu devel , Kevin Wolf , Stefan Hajnoczi , Paolo Bonzini Cc: Lai Jiangshan , Jiang Yunhong , Dong Eddie , "Dr. David Alan Gilbert" , Gonglei , Yang Hongyang , zhanghailiang On 2015-02-11 at 22:07, Wen Congyang wrote: > Signed-off-by: Wen Congyang > Signed-off-by: zhanghailiang > Signed-off-by: Gonglei > --- > block.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) Our current stance on BlockBackends is (as far as I know, anyway) that a BlockBackend always comes with a user. In case you're creating a BlockBackend through -drive or blockdev-add, the user is the monitor (which can use it to attach it to a device, for instance). In this case, there is no user and nobody holds a reference to the BB (other than the BDS, but that doesn't count). Therefore, this patch doesn't look quite right. Max