iommu/vt-d: Extend dmar_domain to support nested domain
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 26 Oct 2023 04:42:10 +0000 (21:42 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Oct 2023 14:16:33 +0000 (11:16 -0300)
commit04f261ac2356ee8962fbd67e38a35e86cbe3c5d8
treea1808dc1645d06d6c7fffb30b52473496c9cac49
parent82b6661c9c35e60946dee536545b4848f25eafab
iommu/vt-d: Extend dmar_domain to support nested domain

The nested domain fields are exclusive to those that used for a DMA
remapping domain. Use union to avoid memory waste.

Link: https://lore.kernel.org/r/20231026044216.64964-3-yi.l.liu@intel.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/intel/iommu.h