iommufd: Flow user flags for domain allocation to domain_alloc_user()
authorYi Liu <yi.l.liu@intel.com>
Thu, 28 Sep 2023 07:15:25 +0000 (00:15 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 10 Oct 2023 16:31:24 +0000 (13:31 -0300)
commit89d63875d80ea127280c60dd4cd101af1d9b6557
tree93c11318c2b12c2c2252a2cd8b332d2e9f6ad1ae
parent7975b722087fa23ff3ad1ff4998b8572a7e17e84
iommufd: Flow user flags for domain allocation to domain_alloc_user()

Extends iommufd_hw_pagetable_alloc() to accept user flags, the uAPI will
provide the flags.

Link: https://lore.kernel.org/r/20230928071528.26258-4-yi.l.liu@intel.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/device.c
drivers/iommu/iommufd/hw_pagetable.c
drivers/iommu/iommufd/iommufd_private.h