iommu: Move def_domain type check for untrusted device into core
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 24 Nov 2020 13:06:01 +0000 (21:06 +0800)
committerWill Deacon <will@kernel.org>
Wed, 25 Nov 2020 12:14:33 +0000 (12:14 +0000)
commit28b41e2c6aebd3caf99a77a76843c0175876bc72
tree34d19d914a9e5d17fd57a4985eaa2ab934f959a9
parentf8394f232b1eab649ce2df5c5f15b0e528c92091
iommu: Move def_domain type check for untrusted device into core

So that the vendor iommu drivers are no more required to provide the
def_domain_type callback to always isolate the untrusted devices.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Cc: Shameerali Kolothum Thodi <shameerali.kolothum.thodi@huawei.com>
Link: https://lore.kernel.org/linux-iommu/243ce89c33fe4b9da4c56ba35acebf81@huawei.com/
Link: https://lore.kernel.org/r/20201124130604.2912899-2-baolu.lu@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/intel/iommu.c
drivers/iommu/iommu.c