Re: [Qemu-devel] [for-2.12 7/7] pci: Eliminate pci_find_primary_bus()

2017-11-29 Thread Peter Xu
On Wed, Nov 29, 2017 at 07:46:28PM +1100, David Gibson wrote: > 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

Re: [Qemu-devel] [for-2.12 7/7] pci: Eliminate pci_find_primary_bus()

2017-11-29 Thread Marcel Apfelbaum
On 29/11/2017 10:46, David Gibson wrote: 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

[Qemu-devel] [for-2.12 7/7] pci: Eliminate pci_find_primary_bus()

2017-11-29 Thread David Gibson
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_hos