Re: [PATCH 02/12] iommu/vt-d: Remove for_each_device_domain()

Jason Gunthorpe via iommu
2022-05-27T15:00:28Z

On Fri, May 27, 2022 at 02:30:09PM +0800, Lu Baolu wrote:
> The per-device device_domain_info data could be retrieved from the
> device itself. There's no need to search a global list.
>
> Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
> ---
> drivers/iommu/intel/iommu.h | 2 --
> drivers/iommu/intel/iommu.c | 25 -------------------------
> drivers/iommu/intel/pasid.c | 37 +++++++++++--------------------------
> 3 files changed, 11 insertions(+), 53 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason