Skip to content

intel_iommu: Add PRI support

CLEMENT MATHIEU--DRIF qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pcie: Add a way to get the outstanding page request allocation (pri) from the config space.hw/pci/pcie.c include/hw/pci/pcie.h+9 -00 replies
2/5intel_iommu: Bypass barrier wait descriptorhw/i386/intel_iommu.c+7 -10 replies
3/5intel_iommu: Declare PRI constants and structureshw/i386/intel_iommu_internal.h+49 -00 replies
4/5intel_iommu: Declare registers for PRIhw/i386/intel_iommu.c+55 -00 replies
5/5intel_iommu: Add PRI operations supporthw/i386/intel_iommu.c hw/i386/intel_iommu_internal.h include/hw/i386/intel_iommu.h+277 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] intel_iommu: Add PRI support

This patch set belongs to a list of series that add SVM support for VT-d. Here, we focus on implementing the PRI API exposed through the PCIIOMMUOps.

This work is based on the VT-d specification version 4.1 (March 2023).

What is PRI?
''''''''''''

PRI (Page Request Interface) is a PCIe-level protocol that enables PCIe devices to request page fault resolutions to the kernel through an IOMMU. PRI combined with ATS are the 2 cornerstones of a technology called SVM (Shared Virtual Memory) or SVA (Shared Virtual Addressing) which allows PCIe devices to read from and write to the memory of userspace applications without requiring page pinning.

Resources
'''''''''

Here is a link to our GitHub repository where you can find:
- Qemu with all the patches for SVM
- ATS
- PRI
- Device IOTLB invalidations
- Requests with already pre-translated addresses
- A demo device
- A simple driver for the demo device
- A userspace program (for testing and demonstration purposes)

https://github.com/BullSequana/Qemu-in-guest-SVM-demo

Clement Mathieu--Drif (5):
pcie: Add a way to get the outstanding page request allocation (pri)
from the config space.
intel_iommu: Bypass barrier wait descriptor
intel_iommu: Declare PRI constants and structures
intel_iommu: Declare registers for PRI
intel_iommu: Add PRI operations support

 hw/i386/intel_iommu.c          | 337 ++++++++++++++++++++++++++++++++-
 hw/i386/intel_iommu_internal.h |  51 +++++
 hw/pci/pcie.c                  |   8 +
 include/hw/i386/intel_iommu.h  |   1 +
 include/hw/pci/pcie.h          |   1 +
 5 files changed, 397 insertions(+), 1 deletion(-)
Signature · 1 line
2.51.0