iommu/vt-d: Set the nested domain to a device
authorYi Liu <yi.l.liu@intel.com>
Thu, 26 Oct 2023 04:42:14 +0000 (21:42 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Oct 2023 14:16:34 +0000 (11:16 -0300)
commit9838f2bb6b6be1e648b9377fc97ee7b18d9f2fbf
treeae8ee676cfeeed6444f8bf822e859307743637fa
parentd86724d4dc45ba2ed80eebb704e12bb71c35d901
iommu/vt-d: Set the nested domain to a device

This adds the helper for setting the nested domain to a device hence
enable nested domain usage on Intel VT-d.

Link: https://lore.kernel.org/r/20231026044216.64964-7-yi.l.liu@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>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/intel/nested.c