iommu / x86: move call to scan_pci_devices() out of vendor code
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 25 Jul 2019 10:16:21 +0000 (12:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Jul 2019 10:16:21 +0000 (12:16 +0200)
commitb5fbe81196866374c5da5c82787145cee372aff3
treef4c108428de14c9212d30715c7614448474d77f6
parent05f41944a05cc89652b6ceb7a08ecb22468d9188
iommu / x86: move call to scan_pci_devices() out of vendor code

It's not vendor specific so it doesn't really belong there.

Scanning the PCI topology also really doesn't have much to do with IOMMU
initialization. It doesn't depend on there even being an IOMMU. This patch
moves to the call to the beginning of iommu_hardware_setup() but only
places it there because the topology information would be otherwise unused.

Subsequent patches will actually make use of the PCI topology during
(x86) IOMMU initialization.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: "Roger Pau Monné" <roger.pau@citrix.com>
Acked-by: Brian Woods <brian.woods@amd.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/x86/iommu.c