summaryrefslogtreecommitdiffstats
path: root/qapi
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2013-06-06 18:48:52 +1000
committerMichael S. Tsirkin <mst@redhat.com>2013-07-07 23:10:57 +0300
commit9bc473057db773dd24be381ccbde4c686595d2e7 (patch)
treec0da77accb6351485563acb9dd9a45416acc6b1b /qapi
parent29b358f93a48a415853d11fc9b02f711b5ec8f76 (diff)
downloadhqemu-9bc473057db773dd24be381ccbde4c686595d2e7.zip
hqemu-9bc473057db773dd24be381ccbde4c686595d2e7.tar.gz
pci: Simpler implementation of primary PCI bus
Currently pci_find_primary_bus() searches the list of root buses for one with domain 0. But since host buses are always registered with domain 0, this just amounts to finding the only PCI host bus. The only remaining users of pci_find_primary_bus() are in pci-hotplug-old.c, which implements the old style pci_add/pci_del commands. Therefore, this patch redefines pci_find_primary_bus() to find the only PCI root bus, returning an error if there are multiple roots. The callers in pci-hotplug-old.c are updated correspondingly, to produce sensible error messages. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qapi')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud