iommu/vt-d: Remove intel_iommu::domains
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 1 Mar 2022 02:01:48 +0000 (10:01 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Mar 2022 15:46:30 +0000 (16:46 +0100)
commit402e6688a7df482cc57be0b0dd5b443d995073fb
tree344c859d9059980654e1c1e3380ebd35832ea6c7
parent067e95fc34f017c66e1711f3a08098d59ad4da1a
iommu/vt-d: Remove intel_iommu::domains

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@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20220214025704.3184654-1-baolu.lu@linux.intel.com
Link: https://lore.kernel.org/r/20220301020159.633356-2-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c
include/linux/intel-iommu.h