> From: Liu, Yi L <yi.l.liu@xxxxxxxxx> > Sent: Monday, July 24, 2023 7:04 PM > > This makes IOMMUFD to use iommu_domain_alloc_user() for > iommu_domain > creation as IOMMUFD needs to support iommu_domain allocation with > parameters from userspace in nesting support. If the iommu driver > doesn't provide domain_alloc_user callback then it falls back to use > iommu_domain_alloc(). > > Suggested-by: Jason Gunthorpe <jgg@xxxxxxxxxx> > Reviewed-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx> > Co-developed-by: Nicolin Chen <nicolinc@xxxxxxxxxx> > Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx> > Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>