diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2013-06-06 18:48:47 +1000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2013-07-07 23:10:07 +0300 |
commit | 1ef7a2a2afedbba47e06af5081a8b4bf6dc1cf71 (patch) | |
tree | fbb429cd5213d47dce1a44ae69a3b4f7a58adaf5 /hw/i386/pc_piix.c | |
parent | 6ac363b50c569815786a795d806e068b3f6a07eb (diff) | |
download | hqemu-1ef7a2a2afedbba47e06af5081a8b4bf6dc1cf71.zip hqemu-1ef7a2a2afedbba47e06af5081a8b4bf6dc1cf71.tar.gz |
pci: Abolish pci_find_root_bus()
pci_find_root_bus() takes a domain parameter. Currently PCI root buses
with domain other than 0 can't be created, so this is more or less a long
winded way of retrieving the main PCI root bus. Numbered domains don't
actually properly cover the (non x86) possibilities for multiple PCI root
buses, so this patch for now enforces the domain == 0 restriction in other
places to replace pci_find_root_bus() with an explicit
pci_find_primary_bus().
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386/pc_piix.c')
-rw-r--r-- | hw/i386/pc_piix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index e393022..0276694 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -342,7 +342,7 @@ static void pc_xen_hvm_init(QEMUMachineInitArgs *args) pc_init_pci(args); - bus = pci_find_root_bus(0); + bus = pci_find_primary_bus(); if (bus != NULL) { pci_create_simple(bus, -1, "xen-platform"); } |