iommu: Rename ops->domain_alloc_user() to domain_alloc_paging_flags()
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 14 Nov 2024 19:55:31 +0000 (15:55 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 22 Nov 2024 18:43:45 +0000 (14:43 -0400)
commitd53764723ecd639a0cc0c5ad24146847fc09f78d
tree9247f09e4cd461935d7caca9eb0887bd17780fd0
parent64214c2b95364d26cdff045d8bbefd37380edbe1
iommu: Rename ops->domain_alloc_user() to domain_alloc_paging_flags()

Now that the main domain allocating path is calling this function it
doesn't make sense to leave it named _user. Change the name to
alloc_paging_flags() to mirror the new iommu_paging_domain_alloc_flags()
function.

A driver should implement only one of ops->domain_alloc_paging() or
ops->domain_alloc_paging_flags(). The former is a simpler interface with
less boiler plate that the majority of drivers use. The latter is for
drivers with a greater feature set (PASID, multiple page table support,
advanced iommufd support, nesting, etc). Additional patches will be needed
to achieve this.

Link: https://patch.msgid.link/r/2-v1-c252ebdeb57b+329-iommu_paging_flags_jgg@nvidia.com
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/amd/iommu.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/intel/iommu.c
drivers/iommu/iommu.c
drivers/iommu/iommufd/hw_pagetable.c
drivers/iommu/iommufd/selftest.c
include/linux/iommu.h