Re: [Qemu-devel] [PATCHv3 1/4] pci_bridge: user-friendly default bus name

2012-02-22 Thread Anthony Liguori
On 02/20/2012 04:52 PM, Michael S. Tsirkin wrote: For a pci bridge device, if we don't override the name with custom code, the bus will be addressed as .0, where id is the id specified by the user. Since PCI Bridge devices have a single bus each, we don't need the index: address the bus using th

[Qemu-devel] [PATCHv3 1/4] pci_bridge: user-friendly default bus name

2012-02-20 Thread Michael S. Tsirkin
For a pci bridge device, if we don't override the name with custom code, the bus will be addressed as .0, where id is the id specified by the user. Since PCI Bridge devices have a single bus each, we don't need the index: address the bus using the parent device name. This is better since this way