]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommu/vt-d: Add helper to allocate paging domain
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 2 Jul 2024 13:08:37 +0000 (21:08 +0800)
committerWill Deacon <will@kernel.org>
Wed, 3 Jul 2024 15:39:26 +0000 (16:39 +0100)
commit2b989ab9bc89b29dd4b5509408b8fa42337eda56
treede77e9555d50cdbd0c8cd7087e85b8dc398aec41
parent804f98e224e41c16e3b70f97790f84894745a392
iommu/vt-d: Add helper to allocate paging domain

The domain_alloc_user operation is currently implemented by allocating a
paging domain using iommu_domain_alloc(). This is because it needs to fully
initialize the domain before return. Add a helper to do this to avoid using
iommu_domain_alloc().

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20240610085555.88197-16-baolu.lu@linux.intel.com
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20240702130839.108139-6-baolu.lu@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/intel/iommu.c