From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: [PATCHv2-RFC 2/2] pci: add standard bridge device Date: Fri, 17 Feb 2012 14:25:56 +0100 Message-ID: <4F3E5564.7040406@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Kevin Wolf , Isaku Yamahata , qemu-devel@nongnu.org, kvm@vger.kernel.org, Avi Kivity To: "Michael S. Tsirkin" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Id: kvm.vger.kernel.org Hi, > + /* If we don't specify the name, the bus will be addressed as .0, where > + * id is the parent id. But it seems more natural to address the bus using > + * the parent device name. */ > + if (dev->qdev.id && *dev->qdev.id) { > + br->bus_name = dev->qdev.id; > + } That makes the bridge behave different than everybody else. Not a good idea IMHO. cheers, Gerd