Skip to content

vEVENTQ support for accelerated SMMUv3 devices

Shameer Kolothum qemu-arm qemu-devel 8 versions – Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest5 patches 8 repliesApplied
  2. v75 patches 11 repliesSuperseded
  3. v65 patches 11 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v55 patches16 repliesSuperseded
v45 patches9 repliesSuperseded
v34 patches9 repliesSuperseded
v24 patches10 repliesSuperseded
v1 RFC4 patches6 repliesSuperseded

Changes in v8 from the cover letter

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/5backends/iommufd: Introduce iommufd_backend_alloc_veventqbackends/iommufd.c backends/trace-events include/system/iommufd.h+46 -00 replies
2/5hw/arm/smmuv3-accel: Add viommu free helperhw/arm/smmuv3-accel.c+15 -60 replies
3/5hw/arm/smmuv3-accel: Allocate vEVENTQ for accelerated SMMUv3 deviceshw/arm/smmuv3-accel.c hw/arm/smmuv3-accel.h hw/arm/smmuv3.c+71 -20 replies
4/5hw/arm/smmuv3: Introduce a helper function for event propagationhw/arm/smmuv3-internal.h hw/arm/smmuv3.c hw/arm/trace-events+19 -70 replies
5/5hw/arm/smmuv3-accel: Read and propagate host vIOMMU eventshw/arm/smmuv3-accel.c+64 -06 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchNicolin ChenEric AugerJonathan Cameron
1/5T-b R-b R-b T-b R-b
2/5R-b R-b T-b R-b
3/5T-b R-b T-b
4/5R-b T-b R-b T-b R-b
5/5T-b R-b R-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v8 thread

Cover letter [PATCH v8 0/5] vEVENTQ support for accelerated SMMUv3 devices

Hi,

Changes from v7:
https://lore.kernel.org/qemu-devel/[email protected]/

-Picked up R-by/T-by tags. Thanks!
-No code changes. Commit messages updated to improve descriptions (Patch #3)

I think this is now ready for 11.0. Please consider.

Note: There may be a minor conflict with Philippe's CONFIG_DEVICES cleanup series[0] if that goes first.

Thanks,
Shameer
[0] https://lore.kernel.org/qemu-devel/[email protected]/

---
Background(From v2):

When accel=on is enabled for an SMMUv3 instance, the host hardware SMMUv3 may generate Stage-1 (S1) event notifications that are intended for the vIOMMU instance in userspace.

This series adds QEMU support for receiving such host events through the vEVENTQ interface and propagating them to the guest. The implementation uses the vEVENTQ support provided by the IOMMUFD subsystem in the kernel.

I have tested this on a Grace platform using some hacks to generate events. Further testing and feedback are welcome.
---

Nicolin Chen (2):
backends/iommufd: Introduce iommufd_backend_alloc_veventq hw/arm/smmuv3-accel: Allocate vEVENTQ for accelerated SMMUv3 devices

Shameer Kolothum (3):
hw/arm/smmuv3-accel: Add viommu free helper hw/arm/smmuv3: Introduce a helper function for event propagation hw/arm/smmuv3-accel: Read and propagate host vIOMMU events

 hw/arm/smmuv3-accel.h    |   6 ++
 hw/arm/smmuv3-internal.h |   4 ++
 include/system/iommufd.h |  14 ++++
 backends/iommufd.c       |  31 +++++++++
 hw/arm/smmuv3-accel.c    | 146 ++++++++++++++++++++++++++++++++++++---
 hw/arm/smmuv3.c          |  26 +++++--
 backends/trace-events    |   1 +
 hw/arm/trace-events      |   2 +-
 8 files changed, 215 insertions(+), 15 deletions(-)
Signature · 1 line
2.43.0