From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK5oQ-0001Hp-8k for qemu-devel@nongnu.org; Wed, 20 Aug 2014 09:20:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XK5oK-0007fP-QS for qemu-devel@nongnu.org; Wed, 20 Aug 2014 09:20:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK5oK-0007eY-IA for qemu-devel@nongnu.org; Wed, 20 Aug 2014 09:20:20 -0400 Message-ID: <53F4A082.7090103@redhat.com> Date: Wed, 20 Aug 2014 15:20:02 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1408517593.25437.102.camel@ori.omang.mine.nu> <53F461E6.5020506@redhat.com> <1408527055.14053.107.camel@abi.no.oracle.com> <20140820113627.GG17371@redhat.com> In-Reply-To: <20140820113627.GG17371@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/3] ioh3420: Provide a unique bus name and an interrupt mapping function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , Knut Omang Cc: Juan Quintela , Alexey Kardashevskiy , Marcel Apfelbaum , Markus Armbruster , qemu-devel@nongnu.org, Gonglei , Igor Mammedov Il 20/08/2014 13:36, Michael S. Tsirkin ha scritto: > > For pci bridges, unless you set bus_name, bus name will > match device itself. See this code: > > * If we don't specify the name, the bus will be addressed as > * .0, where id is the device id. > * Since PCI Bridge devices have a single bus each, we don't need > * the index: > * let users address the bus using the device name. > */ > if (!br->bus_name && dev->qdev.id && *dev->qdev.id) { > br->bus_name = dev->qdev.id; > } Is libvirt using this rule? If not, I'd rather slash it since the .0 name is shared with all other buses and not PCI-bridge-specific. Paolo