]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu: Create __iommu_alloc_identity_domain()
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 28 Oct 2024 09:38:10 +0000 (09:38 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 29 Oct 2024 09:37:03 +0000 (10:37 +0100)
commit4490ccc45fb77f77550bdd65e663af9e1cae6bcb
treeec5abe0f9951c7a538d870744ae5151ad135ee6d
parent4208849ec7a6c46d41e623c359c5619704717140
iommu: Create __iommu_alloc_identity_domain()

Consolidate all the code to create an IDENTITY domain into one
function. This removes the legacy __iommu_domain_alloc() path from all
paths, and preps it for final removal.

BLOCKED/IDENTITY/PAGING are now always allocated via a type specific
function.

[Joerg: Actually remove __iommu_domain_alloc()]

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-13-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c