iommu/vt-d: Don't be too aggressive when clearing one context entry
authorFilippo Sironi <sironi@amazon.de>
Thu, 31 Aug 2017 08:58:11 +0000 (10:58 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 1 Sep 2017 09:30:41 +0000 (11:30 +0200)
commit5082219b6a61cab585765a2ce4cd2a1f2f15dcdc
tree3ffe7caad1ede3794afb266daee091d52500979e
parent11b93ebfa03e1cf45d9ad508eaf2c4d3547e06ca
iommu/vt-d: Don't be too aggressive when clearing one context entry

Previously, we were invalidating context cache and IOTLB globally when
clearing one context entry.  This is a tad too aggressive.
Invalidate the context cache and IOTLB for the interested device only.

Signed-off-by: Filippo Sironi <sironi@amazon.de>
Cc: David Woodhouse <dwmw@amazon.co.uk>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: iommu@lists.linux-foundation.org
Cc: linux-kernel@vger.kernel.org
Acked-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c