]> git.proxmox.com Git - mirror_qemu.git/commit - hw/pci/pci_bridge.c
pci_bridge: user-friendly default bus name
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 19 Feb 2012 23:34:01 +0000 (01:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Mar 2012 15:04:58 +0000 (17:04 +0200)
commit8a3d80faf7794820da5e9666e4adf6a7d4f80f7b
tree847bb7bbc5ad9ad4157a565ae5a360c25adff3cc
parentd662210a440bf90bf0f5fb5eb8abd6244478c97d
pci_bridge: user-friendly default bus name

For a pci bridge device, if we don't override
the name with custom code, the bus will be addressed as
<id>.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 users don't care about
our internal bus/device distinctions.

As far as I could see, we only have built-in
bridges at this point which always override the
name. So this change will only affect ioh3420.c.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci_bridge.c