All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Kernel MMU notifier for IOTLB/DEVTLB management
@ 2017-12-14  1:02 ` Lu Baolu
  0 siblings, 0 replies; 24+ messages in thread
From: Lu Baolu @ 2017-12-14  1:02 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H . Peter Anvin, Alex Williamson,
	Joerg Roedel, David Woodhouse
  Cc: iommu, x86, linux-mm, linux-kernel, Lu Baolu

Shared Virtual Memory (SVM) allows a kernel memory mapping to be
shared between CPU and and a device which requested a supervisor
PASID. Both devices and IOMMU units have TLBs that cache entries
from CPU's page tables. We need to get a chance to flush them at
the same time when we flush the CPU TLBs.

These patches handle this by adding a kernel MMU notifier chain.
The callbacks on this chain will be called whenever the CPU TLB
is flushed for the kernel address space.

Ashok Raj (1):
  iommu/vt-d: Register kernel MMU notifier to manage IOTLB/DEVTLB

Huang Ying (1):
  mm: Add kernel MMU notifier to manage IOTLB/DEVTLB

 arch/x86/mm/tlb.c            |  2 ++
 drivers/iommu/intel-svm.c    | 27 +++++++++++++++++++++++++--
 include/linux/intel-iommu.h  |  5 ++++-
 include/linux/mmu_notifier.h | 33 +++++++++++++++++++++++++++++++++
 mm/mmu_notifier.c            | 27 +++++++++++++++++++++++++++
 5 files changed, 91 insertions(+), 3 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2017-12-15  3:08 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-14  1:02 [PATCH 0/2] Kernel MMU notifier for IOTLB/DEVTLB management Lu Baolu
2017-12-14  1:02 ` Lu Baolu
2017-12-14  1:02 ` [PATCH 1/2] mm: Add kernel MMU notifier to manage IOTLB/DEVTLB Lu Baolu
2017-12-14  1:02   ` Lu Baolu
2017-12-14  1:02   ` Lu Baolu
2017-12-14  3:10   ` Bob Liu
2017-12-14  3:10     ` Bob Liu
2017-12-14  3:10     ` Bob Liu
2017-12-14  3:38     ` Lu Baolu
2017-12-14  3:38       ` Lu Baolu
2017-12-14  6:07       ` Bob Liu
2017-12-14  6:07         ` Bob Liu
2017-12-14  6:07         ` Bob Liu
2017-12-15  3:08         ` Raj, Ashok
2017-12-15  3:08           ` Raj, Ashok
2017-12-15  3:08           ` Raj, Ashok
2017-12-14  6:28       ` Dave Hansen
2017-12-14  6:28         ` Dave Hansen
2017-12-14  6:43         ` Huang, Ying
2017-12-14  6:43           ` Huang, Ying
2017-12-14  6:43           ` Huang, Ying
2017-12-14  1:02 ` [PATCH 2/2] iommu/vt-d: Register " Lu Baolu
2017-12-14  1:02   ` Lu Baolu
2017-12-14  1:02   ` Lu Baolu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.