[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [for-2.12 7/7] pci: Eliminate pci_find_primary_bus()
From: |
Peter Xu |
Subject: |
Re: [Qemu-devel] [for-2.12 7/7] pci: Eliminate pci_find_primary_bus() |
Date: |
Thu, 30 Nov 2017 14:39:39 +0800 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
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_bus(). This removes
> one of only a handful of users of the ugly pci_host_bridges global.
>
> Signed-off-by: David Gibson <address@hidden>
Reviewed-by: Peter Xu <address@hidden>
--
Peter Xu
- Re: [Qemu-devel] [for-2.12 2/7] pci: Move bridge data structures from pci_bus.h to pci_bridge.h, (continued)
- [Qemu-devel] [for-2.12 5/7] pci: Add pci_dev_bus_num() helper, David Gibson, 2017/11/29
- [Qemu-devel] [for-2.12 1/7] pci: Rename root bus initialization functions for clarity, David Gibson, 2017/11/29
- [Qemu-devel] [for-2.12 7/7] pci: Eliminate pci_find_primary_bus(), David Gibson, 2017/11/29
- [Qemu-devel] [for-2.12 6/7] pci: Eliminate redundant PCIDevice::bus pointer, David Gibson, 2017/11/29
- Re: [Qemu-devel] [for-2.12 6/7] pci: Eliminate redundant PCIDevice::bus pointer, Peter Xu, 2017/11/30
- Re: [Qemu-devel] [for-2.12 0/7] PCI cleanups, no-reply, 2017/11/29