]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommufd: Use iommu_paging_domain_alloc()
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 10 Jun 2024 08:55:36 +0000 (16:55 +0800)
committerWill Deacon <will@kernel.org>
Thu, 4 Jul 2024 13:09:33 +0000 (14:09 +0100)
commit26a581606fab44ff76b394f0ba44cd19c6ec0a6e
tree4398d420c731888c3402cee0d6817b6582f69dcc
parenta27bf2743cb80d3b36b5b43e8e2e702412c41668
iommufd: Use iommu_paging_domain_alloc()

If the iommu driver doesn't implement its domain_alloc_user callback,
iommufd_hwpt_paging_alloc() rolls back to allocate an iommu paging domain.
Replace iommu_domain_alloc() with iommu_user_domain_alloc() to pass the
device pointer along the path.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20240610085555.88197-3-baolu.lu@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/iommufd/hw_pagetable.c