diff options
author | Yi Liu <yi.l.liu@intel.com> | 2024-11-08 10:14:00 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-11-08 14:04:55 +0100 |
commit | cfb31f194a1c4b54ea2109bc0fa03e4ee8d4209b (patch) | |
tree | d582fb3a7c44c75410c4cc214959c7cf9fba1c88 /drivers/iommu/intel/iommu.c | |
parent | c33e20869c59c1f78aab11188849dfb15ab412b2 (diff) | |
download | lwn-cfb31f194a1c4b54ea2109bc0fa03e4ee8d4209b.tar.gz lwn-cfb31f194a1c4b54ea2109bc0fa03e4ee8d4209b.zip |
iommu/vt-d: Make intel_svm_set_dev_pasid() support domain replacement
Make intel_svm_set_dev_pasid() support replacement.
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20241107122234.7424-10-yi.l.liu@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel/iommu.c')
-rw-r--r-- | drivers/iommu/intel/iommu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index f3ccbe516dcb..251cfebe6226 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -1752,10 +1752,10 @@ static void domain_context_clear_one(struct device_domain_info *info, u8 bus, u8 intel_context_flush_present(info, context, did, true); } -static int __domain_setup_first_level(struct intel_iommu *iommu, - struct device *dev, ioasid_t pasid, - u16 did, pgd_t *pgd, int flags, - struct iommu_domain *old) +int __domain_setup_first_level(struct intel_iommu *iommu, + struct device *dev, ioasid_t pasid, + u16 did, pgd_t *pgd, int flags, + struct iommu_domain *old) { if (!old) return intel_pasid_setup_first_level(iommu, dev, pgd, |