iommu/vt-d: Use pci_get_domain_bus_and_slot() in pgtable_walk()
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 12 Jul 2022 00:08:54 +0000 (08:08 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 15 Jul 2022 08:21:35 +0000 (10:21 +0200)
commit8ac0b64b9735ae896d200dd952c22999742b4414
treed0ebdce4a9eced8af9acffcf9dda8819c6c25d8b
parent98f7b0db4976690e47701b702ae314375101e327
iommu/vt-d: Use pci_get_domain_bus_and_slot() in pgtable_walk()

Use pci_get_domain_bus_and_slot() instead of searching the global list
to retrieve the pci device pointer. This also removes the global
device_domain_list as there isn't any consumer anymore.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20220706025524.2904370-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c
drivers/iommu/intel/iommu.h