iommu: Move IOMMU_DOMAIN_BLOCKED global statics to ops->blocked_domain
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 27 Sep 2023 23:47:31 +0000 (20:47 -0300)
committerJoerg Roedel <jroedel@suse.de>
Thu, 26 Oct 2023 14:53:49 +0000 (16:53 +0200)
commite5d8be7406ca7b6b251c09b786f08176337c0999
tree73acab72252b870486421294d2d8f00e5ca4be96
parent058b4d9de86b3f77cd23fbd43a0f5ee4ea8e0aeb
iommu: Move IOMMU_DOMAIN_BLOCKED global statics to ops->blocked_domain

Following the pattern of identity domains, just assign the BLOCKED domain
global statics to a value in ops. Update the core code to use the global
static directly.

Update powerpc to use the new scheme and remove its empty domain_alloc
callback.

Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Sven Peter <sven@svenpeter.dev>
Link: https://lore.kernel.org/r/1-v2-bff223cf6409+282-dart_paging_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
arch/powerpc/kernel/iommu.c
drivers/iommu/iommu.c
include/linux/iommu.h