summaryrefslogtreecommitdiff
path: root/tools/testing/selftests
diff options
context:
space:
mode:
authorYi Liu <yi.l.liu@intel.com>2023-09-28 10:15:24 +0300
committerJason Gunthorpe <jgg@nvidia.com>2023-10-10 19:31:24 +0300
commit7975b722087fa23ff3ad1ff4998b8572a7e17e84 (patch)
tree54a9637217d9dc888d8a534b1ef113e6df1f8aad /tools/testing/selftests
parent909f4abd1097769d024c3a9c2e59c2fbe5d2d0c0 (diff)
downloadlinux-7975b722087fa23ff3ad1ff4998b8572a7e17e84.tar.xz
iommufd: Use the domain_alloc_user() op for domain allocation
Make IOMMUFD use iommu_domain_alloc_user() by default for iommu_domain creation. IOMMUFD needs to support iommu_domain allocation with parameters from userspace in nested support, and a driver is expected to implement everything under this op. If the iommu driver doesn't provide domain_alloc_user callback then IOMMUFD falls back to use iommu_domain_alloc() with an UNMANAGED type if possible. Link: https://lore.kernel.org/r/20230928071528.26258-3-yi.l.liu@intel.com Suggested-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Co-developed-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/testing/selftests')
0 files changed, 0 insertions, 0 deletions