Received: from [140.186.70.92] (port=48819 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORLaM-0007e1-Vc for qemu-devel@nongnu.org; Wed, 23 Jun 2010 04:45:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORLaD-0008TO-9p for qemu-devel@nongnu.org; Wed, 23 Jun 2010 04:45:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57108) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORLaD-0008TH-3H for qemu-devel@nongnu.org; Wed, 23 Jun 2010 04:45:21 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH v4 02/23] qdev: Restrict direct bus addressing via its name References: <42cafcab8804bcabac400dc4104fbb3da2d1aed4.1276641524.git.jan.kiszka@web.de> Date: Wed, 23 Jun 2010 10:45:17 +0200 In-Reply-To: <42cafcab8804bcabac400dc4104fbb3da2d1aed4.1276641524.git.jan.kiszka@web.de> (Jan Kiszka's message of "Wed, 16 Jun 2010 00:38:26 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Anthony Liguori , Juan Quintela , Jan Kiszka , qemu-devel@nongnu.org, Luiz Capitulino , Blue Swirl , Avi Kivity Jan Kiszka writes: > From: Jan Kiszka > > We allow to address a bus only using its local name. This is ambiguous > but unfortunately so handy that people (specifically libvirt) will > likely complain if bus=pci.0 needs to be replaced with > bus=/i440FX-pcihost/pci.0 all over the place. So keep this for now but > drop at least support for starting a qtree walks with an abbreviated bus > name. > > Signed-off-by: Jan Kiszka Again, affects only -device and device_add option bus. Before, an argument started either with '/' (path anchored at root) or a bus name (path anchored at that bus). Now, an argument started either with '/' (path anchored at root) or it is a bus name. If we decide to add sane relative paths to qdev, i.e. paths anchored at unique ID, we get a slight anomaly here: bus=a bus name, not a relative path bus=a/b relative path anchored at node with unique ID a. Works for me.