iommu/vt-d: Don't switch off swiotlb if bounce page is used
authorLu Baolu <baolu.lu@linux.intel.com>
Fri, 6 Sep 2019 06:14:50 +0000 (14:14 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 11 Sep 2019 10:34:30 +0000 (12:34 +0200)
commitc5a5dc4cbbf4540c1891cdb2b70cf469405ea61f
treec8b80048b72d9094a9b92d4aa4c9de33cf60f2c2
parente5e04d051979dbd636a99099b7a595093c50a4bc
iommu/vt-d: Don't switch off swiotlb if bounce page is used

The bounce page implementation depends on swiotlb. Hence, don't
switch off swiotlb if the system has untrusted devices or could
potentially be hot-added with any untrusted devices.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/Kconfig
drivers/iommu/intel-iommu.c