From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=40479 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OI5Pu-00038t-3s for qemu-devel@nongnu.org; Fri, 28 May 2010 15:40:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OI5Ps-00014X-Pg for qemu-devel@nongnu.org; Fri, 28 May 2010 15:40:25 -0400 Received: from mail.codesourcery.com ([38.113.113.100]:48245) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OI5Ps-00014F-GU for qemu-devel@nongnu.org; Fri, 28 May 2010 15:40:24 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] Name the default PCI bus "pci.0" on all architectures Date: Fri, 28 May 2010 20:39:53 +0100 References: <1274287377-19424-1-git-send-email-berrange@redhat.com> In-Reply-To: <1274287377-19424-1-git-send-email-berrange@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201005282039.53749.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > The system emulators for each arch are using inconsistent > naming for the default PCI bus "pci" vs "pci.0". Since it > is conceivable we'll have multiple PCI buses in the future > standardize on "pci.0" for all architectures. This ensures > mgmt apps can rely on a name when assigning PCI devices an > address on the bus using eg '-device e1000,bus=pci.0,addr=3' No. Bus names are local to the parent device. None of the host bridges support multiple bridges, so the ".0" suffix makes no sense. The parent device has no idea whether it owns the "default" pci bus or not. If you have multiple PCI busses then you can identify them by the device path. Paul