iommu/vt-d: Add blocking domain support
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 22 Nov 2022 00:29:45 +0000 (08:29 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 22 Nov 2022 13:05:21 +0000 (14:05 +0100)
commit35a99c54dd60103930db4a472dd15f232e754867
tree09c848e1eea498dc9db2184ad4bbfe01a70384d5
parentc7be17c2903d4acbf9aa372bfb6e2a418387fce0
iommu/vt-d: Add blocking domain support

The Intel IOMMU hardwares support blocking DMA transactions by clearing
the translation table entries. This implements a real blocking domain to
avoid using an empty UNMANAGED domain. The detach_dev callback of the
domain ops is not used in any path. Remove it to avoid dead code as well.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20221118132451.114406-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c