David Gibson e492dc5a26 pci: Eliminate pci_find_primary_bus()
pci_find_primary_bus() only has one user, in pc_xen_hvm_init().  That's
inside the machine construction code, so it already has easy access to the
machine's primary PCI bus.

Get it directly, and thereby remove pci_find_primary_bus().  This removes
one of only a handful of users of the ugly pci_host_bridges global.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
2017-12-05 19:13:45 +02:00
..
2016-10-04 13:28:07 +01:00
2016-10-04 13:28:09 +01:00
2017-01-27 18:07:59 +01:00
2017-01-24 23:26:52 +03:00
2017-09-08 09:30:55 +10:00
2017-06-23 11:51:50 +02:00
2016-05-18 15:04:27 +03:00
2017-06-20 14:31:32 +02:00
2017-10-15 05:54:40 +03:00
2017-12-05 19:13:45 +02:00
2017-02-28 17:10:00 +00:00
2017-01-27 18:07:59 +01:00
2017-09-21 16:36:56 +01:00
2017-09-21 16:36:56 +01:00
2017-12-05 19:13:45 +02:00
2017-01-27 18:07:59 +01:00
2017-11-20 11:08:00 +08:00
2017-04-24 12:32:12 +01:00
2017-06-01 18:49:22 +02:00
2014-10-23 16:41:25 +02:00
2017-09-08 16:15:17 +03:00