Skip to content

Commit 7d12eb2

Browse files
jgunthorpejoergroedel
authored andcommitted
iommu/vt-d: Use ops->blocked_domain
Trivially migrate to the ops->blocked_domain for the existing global static. 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/3-v2-bff223cf6409+282-dart_paging_jgg@nvidia.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 7b6dd84 commit 7d12eb2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4041,8 +4041,6 @@ static struct iommu_domain *intel_iommu_domain_alloc(unsigned type)
40414041
struct iommu_domain *domain;
40424042

40434043
switch (type) {
4044-
case IOMMU_DOMAIN_BLOCKED:
4045-
return &blocking_domain;
40464044
case IOMMU_DOMAIN_DMA:
40474045
case IOMMU_DOMAIN_UNMANAGED:
40484046
dmar_domain = alloc_domain(type);
@@ -4804,6 +4802,7 @@ static void *intel_iommu_hw_info(struct device *dev, u32 *length, u32 *type)
48044802
}
48054803

48064804
const struct iommu_ops intel_iommu_ops = {
4805+
.blocked_domain = &blocking_domain,
48074806
.capable = intel_iommu_capable,
48084807
.hw_info = intel_iommu_hw_info,
48094808
.domain_alloc = intel_iommu_domain_alloc,

0 commit comments

Comments
 (0)