]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu: Put domain allocation in __iommu_group_alloc_blocking_domain()
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 28 Oct 2024 09:38:09 +0000 (09:38 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 29 Oct 2024 09:08:23 +0000 (10:08 +0100)
commit4208849ec7a6c46d41e623c359c5619704717140
tree319a9fa8f27cbd236b18dfc5e6172dfaa6822453
parent4402f2627d30c44f56180295e14561f1820eeacc
iommu: Put domain allocation in __iommu_group_alloc_blocking_domain()

There is no longer a reason to call __iommu_domain_alloc() to allocate
the blocking domain. All drivers that support a native blocking domain
provide it via the ops, for other drivers we should call
iommu_paging_domain_alloc().

__iommu_group_alloc_blocking_domain() is the only place that allocates
an BLOCKED domain, so move the ops->blocked_domain logic there.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20241028093810.5901-12-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c