From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWwor-0003bu-Au for qemu-devel@nongnu.org; Tue, 01 Sep 2015 21:26:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWwoq-0008TI-A2 for qemu-devel@nongnu.org; Tue, 01 Sep 2015 21:26:33 -0400 References: <1439279489-13338-1-git-send-email-wency@cn.fujitsu.com> <1439279489-13338-6-git-send-email-wency@cn.fujitsu.com> <55E4A536.6040905@redhat.com> <55E4F767.1070602@cn.fujitsu.com> <55E5C572.7000606@redhat.com> From: Wen Congyang Message-ID: <55E65026.2050902@cn.fujitsu.com> Date: Wed, 2 Sep 2015 09:25:58 +0800 MIME-Version: 1.0 In-Reply-To: <55E5C572.7000606@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Patch for-2.5 v2 5/6] qmp: add monitor command to add/remove a child List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu devel , Markus Armbruster , Alberto Garcia , Stefan Hajnoczi Cc: Kevin Wolf , zhanghailiang , qemu block , Jiang Yunhong , Dong Eddie , "Dr. David Alan Gilbert" , Gonglei , Yang Hongyang On 09/01/2015 11:34 PM, Eric Blake wrote: > On 08/31/2015 06:55 PM, Wen Congyang wrote: > >>>> +This command is still a work in progress. It doesn't support all >>>> +block drivers. Stay away from it unless you want it to help with >>>> +its development. >>> >>> Maybe we should name it 'x-child-add' for now, so that we aren't baking >>> ourselves into a corner. >> >> Do you mean the command name should be x-child-add? It is OK. > > Use of the 'x-' prefix means a command is experimental and may change or > be withdrawn. It gives us a way to test if an interface is useful > without committing to that interface long term. We've still got time > before 2.5 to get blockdev-add working everywhere, in which case I think > we are better off using blockdev-add to create a new unattached BDS and > then have this command pass the node name to be made the new child, > rather than all the options for opening the child from scratch. > Good idea. The unattached BDS created by the command blockdev-add always have BB. So it may be used by the device created by the command device_add later. So I think we should have an API to check it. What about the following patches? http://lists.nongnu.org/archive/html/qemu-devel/2015-07/msg01591.html http://lists.nongnu.org/archive/html/qemu-devel/2015-07/msg01590.html Thanks Wen Congyang