intel-iommu: Avoid global flushes with caching mode.
authorNadav Amit <nadav.amit@gmail.com>
Thu, 8 Apr 2010 20:00:41 +0000 (23:00 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 9 Apr 2010 14:54:41 +0000 (15:54 +0100)
commit78d5f0f500e6ba8f6cfd0673475ff4d941d705a2
treed992607aba2b178a251d52d4e2ac6f9c62709c10
parent82653633b6161cdecc011d15bc9df1c7489bd9a2
intel-iommu: Avoid global flushes with caching mode.

While it may be efficient on real hardware, emulation of global
invalidations is very expensive as all shadow entries must be examined.
This patch changes the behaviour when caching mode is enabled (which is
the case when IOMMU emulation takes place). In this case, page specific
invalidation is used instead.

Signed-off-by: Nadav Amit <nadav.amit@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c