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

From: Jason Gunthorpe
Date: Fri May 27 2022 - 11:00:31 EST


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@xxxxxxxxxxxxxxx>
> ---
> 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@xxxxxxxxxx>

Jason