]> 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)
commit7a5517a82d6c71bdd4881f286aea3e545114e8d3
treec8b80048b72d9094a9b92d4aa4c9de33cf60f2c2
parentc018d20354b6aa318c5a613d2538272a28cb4fd4
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