]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu: Add domain_alloc_identity()
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 8 Apr 2025 16:35:48 +0000 (13:35 -0300)
committerJoerg Roedel <jroedel@suse.de>
Mon, 28 Apr 2025 11:14:57 +0000 (13:14 +0200)
commit0d609a1450fab636c825c66344ab0ecfc1d3a98c
treef91b21448f4d2f70874456ebd4289b9b2b246858
parent0d76a6edae9eeae5364285296b69d73dacb152f3
iommu: Add domain_alloc_identity()

virtio-iommu has a mode where the IDENTITY domain is actually a paging
domain with an identity mapping covering some of the system address
space manually created.

To support this add a new domain_alloc_identity() op that accepts
the struct device so that virtio can allocate and fully finalize a
paging domain to return.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/2-v4-ff5fb6b03bd1+288-iommu_virtio_domains_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c
include/linux/iommu.h