summaryrefslogtreecommitdiff
path: root/drivers/iommu/intel/iommu.h
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2023-10-25 21:42:15 -0700
committerJason Gunthorpe <jgg@nvidia.com>2023-10-26 11:16:34 -0300
commitb41e38e225398191aaa0f1115d6234f57ffd0741 (patch)
treeb412993e8e2d760cd95da68852290182c7f49a8d /drivers/iommu/intel/iommu.h
parent9838f2bb6b6be1e648b9377fc97ee7b18d9f2fbf (diff)
downloadlinux-b41e38e225398191aaa0f1115d6234f57ffd0741.tar.gz
linux-b41e38e225398191aaa0f1115d6234f57ffd0741.tar.bz2
linux-b41e38e225398191aaa0f1115d6234f57ffd0741.zip
iommu/vt-d: Add nested domain allocation
This adds the support for IOMMU_HWPT_DATA_VTD_S1 type. And 'nested_parent' is added to mark the nested parent domain to sanitize the input parent domain. Link: https://lore.kernel.org/r/20231026044216.64964-8-yi.l.liu@intel.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/iommu/intel/iommu.h')
-rw-r--r--drivers/iommu/intel/iommu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/intel/iommu.h b/drivers/iommu/intel/iommu.h
index 6a97711f947a..ba9be915eb84 100644
--- a/drivers/iommu/intel/iommu.h
+++ b/drivers/iommu/intel/iommu.h
@@ -601,6 +601,7 @@ struct dmar_domain {
* level.
*/
u8 dirty_tracking:1; /* Dirty tracking is enabled */
+ u8 nested_parent:1; /* Has other domains nested on it */
spinlock_t lock; /* Protect device tracking lists */
struct list_head devices; /* all devices' list */