iommu/vt-d: Add helper for nested domain allocation
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 26 Oct 2023 04:42:11 +0000 (21:42 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Oct 2023 14:16:33 +0000 (11:16 -0300)
commit79ae1eccd3f7fb010064c0f6242da8f8944c21fd
tree668d560c8633479c809207523b82720b019ed98a
parent04f261ac2356ee8962fbd67e38a35e86cbe3c5d8
iommu/vt-d: Add helper for nested domain allocation

This adds helper for accepting user parameters and allocate a nested
domain.

Link: https://lore.kernel.org/r/20231026044216.64964-4-yi.l.liu@intel.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/intel/Makefile
drivers/iommu/intel/iommu.h
drivers/iommu/intel/nested.c [new file with mode: 0644]