Re: [PATCH v2 01/11] iommu/vt-d: Remove intel_iommu::domains

From: Jason Gunthorpe
Date: Thu Feb 24 2022 - 07:58:50 EST


On Mon, Feb 14, 2022 at 10:56:54AM +0800, Lu Baolu wrote:
> The "domains" field of the intel_iommu structure keeps the mapping of
> domain_id to dmar_domain. This information is not used anywhere. Remove
> and cleanup it to avoid unnecessary memory consumption.
>
> Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
> Reviewed-by: Christoph Hellwig <hch@xxxxxx>
> ---
> include/linux/intel-iommu.h | 1 -
> drivers/iommu/intel/iommu.c | 68 ++-----------------------------------
> 2 files changed, 3 insertions(+), 66 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

Jason