]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbabcc2caa37b966c185c2ebaea2f42bf1a107f6f
treec8b80048b72d9094a9b92d4aa4c9de33cf60f2c2
parentcbe05d4f01632ef4b48dc5344ac0ffb33a4ef94b
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