Shared Virtual Addressing for the IOMMU
Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest10 patches 33 repliesIn review
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | iommu: Introduce Shared Virtual Addressing APIdrivers/ drivers/ drivers/ +2 more | +147 | 6 replies | |
| 2/10 | iommu/sva: Bind process address spaces to devicesdrivers/ drivers/ include/ | +161 | 5 replies | |
| 3/10 | iommu/sva: Manage process address spacesdrivers/ drivers/ include/ | +424 | 15 replies | |
| 4/10 | iommu/sva: Add a mm_exit callback for device driversdrivers/ include/ | +15 | 0 replies | |
| 5/10 | iommu/sva: Track mm changes with an MMU notifierdrivers/ drivers/ include/ | +240 | 0 replies | |
| 6/10 | iommu/sva: Search mm by PASIDdrivers/ include/ | +33 | 1 reply | |
| 7/10 | iommu: Add a page fault handlerdrivers/ drivers/ drivers/ +1 more | +442 | 2 replies | |
| 8/10 | iommu/iopf: Handle mm faultsdrivers/ | +84 | 0 replies | |
| 9/10 | iommu/sva: Register page fault handlerdrivers/ drivers/ include/ | +30 | 0 replies | |
| 10/10 | iommu/sva: Add support for private PASIDsdrivers/ drivers/ include/ | +331 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 00/10] Shared Virtual Addressing for the IOMMU
This is version 3 of the core changes for Shared Virtual Addressing in the IOMMU. It provides an API for sharing process address spaces with devices, using for example PCI PASID and PRI.
This time I didn't append the VFIO and SMMUv3 example users. A smaller series is easier for me to manage and may be less intimidating for reviewers. If you're adding or updating SVA support to your IOMMU or device driver, you can find my complete patch stack at [1] for inspiration.
Changes to patches 1-9 address feedback from v2 [2]. Mostly small tweaks and comments, that I tried to detail on each patch.
I added patch 10/10 from Jordan Crouse, for managing PASID without sharing process address spaces. This interface might get superseded by auxiliary domains [3], since they are more suitable than io_mm for Intel vt-d's mdev virtualization. Auxiliary domains reuse existing iommu_map/ iommu_unmap/etc ops instead of introducing new ones, so even though it's more invasive, I tend to prefer that solution. But since we need something for testing right now, I'm appending patch 10 to the series.
The series depends on Jacob Pan's patches for fault reporting [4].
iommu: introduce device fault data
driver core: add per device iommu param
iommu: add a timeout parameter for prq response
iommu: introduce device fault report API
iommu: introduce page response function
[1] git://linux-arm.org/linux-jpb.git sva/v3
[2] https://www.spinics.net/lists/kvm/msg168742.html
[3] https://lwn.net/ml/linux-kernel/20180830040922.30426-1-baolu.lu-VuQAYsv1563Yd54FQh9/[email protected]/
[4] https://lwn.net/ml/linux-kernel/1526072055-86990-1-git-send-email-jacob.jun.pan%40linux.intel.com/
Jean-Philippe Brucker (10):
iommu: Introduce Shared Virtual Addressing API iommu/sva: Bind process address spaces to devices iommu/sva: Manage process address spaces iommu/sva: Add a mm_exit callback for device drivers iommu/sva: Track mm changes with an MMU notifier iommu/sva: Search mm by PASID
iommu: Add a page fault handler
iommu/iopf: Handle mm faults
iommu/sva: Register page fault handler iommu/sva: Add support for private PASIDs
drivers/iommu/Kconfig | 9 + drivers/iommu/Makefile | 2 + drivers/iommu/io-pgfault.c | 464 ++++++++++++++++++ drivers/iommu/iommu-sva.c | 967 +++++++++++++++++++++++++++++++++++++ drivers/iommu/iommu.c | 143 +++++- include/linux/iommu.h | 289 ++++++++++- 6 files changed, 1855 insertions(+), 19 deletions(-) create mode 100644 drivers/iommu/io-pgfault.c create mode 100644 drivers/iommu/iommu-sva.c
Signature · 1 line
2.18.0