From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:48172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1go8CN-0004Il-24 for qemu-devel@nongnu.org; Mon, 28 Jan 2019 09:47:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1go8CF-0000p7-TJ for qemu-devel@nongnu.org; Mon, 28 Jan 2019 09:47:38 -0500 Date: Mon, 28 Jan 2019 15:47:20 +0100 From: Kevin Wolf Message-ID: <20190128144720.GB5756@localhost.localdomain> References: <20190128142748.29140-1-antonkuchin@yandex-team.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190128142748.29140-1-antonkuchin@yandex-team.ru> Subject: Re: [Qemu-devel] [PATCH 0/2] block: add blk_lookup() for getting device by node_name List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anton Kuchin Cc: qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , qemu-block@nongnu.org, Max Reitz , Eric Blake , Markus Armbruster , Evgeny Yakovlev Am 28.01.2019 um 15:27 hat Anton Kuchin geschrieben: > Some HMP and QMP commands are targeting BlockBackend but > for hotplugged devices name of BB is deprecated, instead > name of root BlockDriverState is set. These patches add > functions to search BB by attached root BDS name. > > This approach isn't perfect, but I couldn't invent a better > one and I belive it's more convinient than accessing BB > by QOM path. There could be more than one BlockBackend attached to a single node, so this approach is simply wrong. I think the qdev ID is actually not only a pretty convenient way, but in fact the only logical way to address a guest device (and BlockBackends that can be accessed by the monitor are essentially a part of the guest device). Does your series allow to perform any operation that isn't possible currently? If so, it's probably this operation that needs to be fixed to either accept node names (if it's a backend operation) or a device ID (if it's a frontend operation). Kevin