Skip to content

PRI support for VT-d

CLEMENT MATHIEU--DRIF qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8pcie: add a helper to declare the PRI capability for a pcie devicehw/pci/pcie.c include/hw/pci/pcie.h include/hw/pci/pcie_regs.h+33 -10 replies
2/8pcie: helper functions to check to check if PRI is enabledhw/pci/pcie.c include/hw/pci/pcie.h+10 -00 replies
3/8pcie: 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
4/8pci: declare structures and IOMMU operation for PRIinclude/exec/memory.h include/hw/pci/pci_bus.h+31 -00 replies
5/8pci: add a PCI-level API for PRIhw/pci/pci.c include/exec/memory.h include/hw/pci/pci.h +1 more+166 -00 replies
6/8intel_iommu: declare PRI constants and structureshw/i386/intel_iommu_internal.h+51 -10 replies
7/8intel_iommu: declare registers for PRIhw/i386/intel_iommu.c+67 -00 replies
8/8intel_iommu: add PRI operations supporthw/i386/intel_iommu.c hw/i386/intel_iommu_internal.h+237 -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 v1 0/8] PRI support for VT-d

This series belongs to a list of series that add SVM support for VT-d.

Here we focus on the implementation of PRI support in the IOMMU and on a PCI-level API for PRI to be used by virtual devices.

This work is based on the VT-d specification version 4.1 (March 2023). Here is a link to a GitHub repository where you can find the following elements :
- Qemu with all the patches for SVM
- ATS
- PRI
- Device IOTLB invalidations
- Requests with already 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

Clément Mathieu--Drif (8):
pcie: add a helper to declare the PRI capability for a pcie device
pcie: helper functions to check to check if PRI is enabled
pcie: add a way to get the outstanding page request allocation (pri)
from the config space.
pci: declare structures and IOMMU operation for PRI
pci: add a PCI-level API for PRI
intel_iommu: declare PRI constants and structures
intel_iommu: declare registers for PRI
intel_iommu: add PRI operations support

 hw/i386/intel_iommu.c          | 302 +++++++++++++++++++++++++++++++++
 hw/i386/intel_iommu_internal.h |  54 +++++-
 hw/pci/pci.c                   |  37 ++++
 hw/pci/pcie.c                  |  42 +++++
 include/exec/memory.h          |  65 +++++++
 include/hw/pci/pci.h           |  45 +++++
 include/hw/pci/pci_bus.h       |   1 +
 include/hw/pci/pcie.h          |   7 +-
 include/hw/pci/pcie_regs.h     |   4 +
 system/memory.c                |  49 ++++++
 10 files changed, 604 insertions(+), 2 deletions(-)
Signature · 1 line
2.45.1