]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: xarray to track protection_domain->iommu list
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 30 Oct 2024 06:35:48 +0000 (06:35 +0000)
committerJoerg Roedel <jroedel@suse.de>
Wed, 30 Oct 2024 10:06:42 +0000 (11:06 +0100)
commitd16041124de1dea4389b5e6b330657f34f8c0492
tree71cf639f59e1a279d0d38ea2b29867cf3957c4e1
parent743a4bae9fa1480e5f6837f6a55be918d6cd0e16
iommu/amd: xarray to track protection_domain->iommu list

Use xarray to track IOMMU attached to protection domain instead of
static array of MAX_IOMMUS. Also add lockdep assertion.

Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20241030063556.6104-5-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/iommu.c