iommu/vt-d: Add domain_alloc_user op
authorYi Liu <yi.l.liu@intel.com>
Thu, 28 Sep 2023 07:15:28 +0000 (00:15 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 10 Oct 2023 16:31:24 +0000 (13:31 -0300)
commitc97d1b20d3835178bcd0e3a86c20ce4e36b6d80c
treee76f0050213cbe3e3d7189bc1452d8a546b1a41f
parent408663619fcfc89c087df65b362c91bf0a0be617
iommu/vt-d: Add domain_alloc_user op

Add the domain_alloc_user() op implementation. It supports allocating
domains to be used as parent under nested translation.

Unlike other drivers VT-D uses only a single page table format so it only
needs to check if the HW can support nesting.

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