Skip to content

RFC IOMMU driver changes for shared virtual memory virtualization

Jacob Pan linux-iommu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9iommu: Introduce bind_pasid_table API functiondrivers/iommu/iommu.c include/linux/iommu.h include/uapi/linux/iommu.h+75 -02 replies
2/9iommu/vt-d: add bind_pasid_table functiondrivers/iommu/intel-iommu.c include/linux/dma_remapping.h+110 -04 replies
3/9iommu: Introduce iommu do invalidate API functiondrivers/iommu/iommu.c include/linux/iommu.h include/uapi/linux/iommu.h+28 -01 reply
4/9iommu/vt-d: Add iommu do invalidate functiondrivers/iommu/intel-iommu.c include/linux/intel-iommu.h+51 -11 reply
5/9iommu: Introduce fault notifier APIdrivers/iommu/iommu.c include/linux/iommu.h+117 -05 replies
6/9iommu/vt-d: track device with pasid table bond to a guestdrivers/iommu/intel-iommu.c include/linux/intel-iommu.h+20 -181 reply
7/9iommu/dmar: notify unrecoverable faultsdrivers/iommu/dmar.c+36 -12 replies
8/9iommu/intel-svm: notify page request to guestdrivers/iommu/intel-svm.c+80 -14 replies
9/9iommu/intel-svm: replace dev ops with generic fault notifierdrivers/iommu/intel-svm.c include/linux/intel-svm.h+5 -280 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/9] IOMMU driver changes for shared virtual memory virtualization

This patchset provides IOMMU driver support of shared virtual memory (SVM) virtualization. Generic APIs are introduced in addition to Intel VT-d specific changes, the goal is to have common interfaces across IOMMU and device types for both VFIO and other in-kernel users.

This is the IOMMU portion follow up of the more complete series of the kernel changes to support SVM. Please refer to the link below for more details.
https://www.spinics.net/lists/kvm/msg148819.html
New in this series are the IOMMU fault notification APIs.

At the top level, three new IOMMU interfaces are introduced:
- bind PASID table
- passdown invalidation
- per device IOMMU fault notification

The additional patches are Intel VT-d specific, which either implements or replaces existing private interfaces with the generic ones.

Thanks,

Jacob

Jacob Pan (8):
iommu: Introduce bind_pasid_table API function iommu/vt-d: add bind_pasid_table function iommu/vt-d: Add iommu do invalidate function
iommu: Introduce fault notifier API
iommu/vt-d: track device with pasid table bond to a guest iommu/dmar: notify unrecoverable faults iommu/intel-svm: notify page request to guest iommu/intel-svm: replace dev ops with generic fault notifier

Liu, Yi L (1):
iommu: Introduce iommu do invalidate API function

 drivers/iommu/dmar.c          |  37 ++++++++-
 drivers/iommu/intel-iommu.c   | 169 +++++++++++++++++++++++++++++++++++++-----
 drivers/iommu/intel-svm.c     |  94 ++++++++++++++++++++---
 drivers/iommu/iommu.c         |  95 ++++++++++++++++++++++++
 include/linux/dma_remapping.h |   1 +
 include/linux/intel-iommu.h   |  30 +++++++-
 include/linux/intel-svm.h     |  20 +----
 include/linux/iommu.h         |  88 ++++++++++++++++++++++
 include/uapi/linux/iommu.h    |  37 +++++++++
 9 files changed, 522 insertions(+), 49 deletions(-)
 create mode 100644 include/uapi/linux/iommu.h
Signature · 1 line
2.7.4