diff options
| author | Yi Liu <yi.l.liu@intel.com> | 2023-10-25 21:42:13 -0700 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2023-10-26 11:16:34 -0300 |
| commit | d86724d4dc45ba2ed80eebb704e12bb71c35d901 (patch) | |
| tree | 5485a2f74697dfbdafa2fe82645cf74c8978f9d5 /drivers/iommu/intel/iommu.h | |
| parent | 111bf85c68f6edb2d06c6705faab9d1649348bdb (diff) | |
| download | linux-d86724d4dc45ba2ed80eebb704e12bb71c35d901.tar.gz linux-d86724d4dc45ba2ed80eebb704e12bb71c35d901.tar.bz2 linux-d86724d4dc45ba2ed80eebb704e12bb71c35d901.zip | |
iommu/vt-d: Make domain attach helpers to be extern
This makes the helpers visible to nested.c.
Link: https://lore.kernel.org/r/20231026044216.64964-6-yi.l.liu@intel.com
Suggested-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-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>
Diffstat (limited to 'drivers/iommu/intel/iommu.h')
| -rw-r--r-- | drivers/iommu/intel/iommu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/iommu/intel/iommu.h b/drivers/iommu/intel/iommu.h index f59a9374f62d..6a97711f947a 100644 --- a/drivers/iommu/intel/iommu.h +++ b/drivers/iommu/intel/iommu.h @@ -878,6 +878,13 @@ int qi_submit_sync(struct intel_iommu *iommu, struct qi_desc *desc, */ #define QI_OPT_WAIT_DRAIN BIT(0) +int domain_attach_iommu(struct dmar_domain *domain, struct intel_iommu *iommu); +void domain_detach_iommu(struct dmar_domain *domain, struct intel_iommu *iommu); +void device_block_translation(struct device *dev); +int prepare_domain_attach_device(struct iommu_domain *domain, + struct device *dev); +void domain_update_iommu_cap(struct dmar_domain *domain); + int dmar_ir_support(void); void *alloc_pgtable_page(int node, gfp_t gfp); |
