[PATCH v3 0/4] vEVENTQ support for accelerated SMMUv3 devices

Shameer Kolothum posted 4 patches 1 week, 3 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260127103328.255382-1-skolothumtho@nvidia.com
Maintainers: Yi Liu <yi.l.liu@intel.com>, Eric Auger <eric.auger@redhat.com>, Zhenzhong Duan <zhenzhong.duan@intel.com>, Peter Maydell <peter.maydell@linaro.org>
There is a newer version of this series
backends/iommufd.c       |  31 ++++++++++
backends/trace-events    |   1 +
hw/arm/smmuv3-accel.c    | 125 ++++++++++++++++++++++++++++++++++++++-
hw/arm/smmuv3-accel.h    |   8 +++
hw/arm/smmuv3-internal.h |   4 ++
hw/arm/smmuv3.c          |  25 ++++++--
hw/arm/trace-events      |   2 +-
include/system/iommufd.h |  12 ++++
8 files changed, 199 insertions(+), 9 deletions(-)
[PATCH v3 0/4] vEVENTQ support for accelerated SMMUv3 devices
Posted by Shameer Kolothum 1 week, 3 days ago
Hi,

Changes from v2:
 https://lore.kernel.org/qemu-devel/20251204092245.5157-1-skolothumtho@nvidia.com/

 -Rebased on v9 of the "accelerated SMMUv3" series[0].
 -Addressed feedback and picked up tags. Thanks!

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. The complete branch
is here:
https://github.com/shamiali2008/qemu-master/tree/master-smmuv3-accel-v9-dmabuf-v4-veventq-v3

Given that the accelerated SMMUv3 v9 series is now applied, I think it
makes sense for this small series to go along with it.

Thanks,
Shameer
[0] https://lore.kernel.org/qemu-devel/20260126104342.253965-1-skolothumtho@nvidia.com/

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

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

 backends/iommufd.c       |  31 ++++++++++
 backends/trace-events    |   1 +
 hw/arm/smmuv3-accel.c    | 125 ++++++++++++++++++++++++++++++++++++++-
 hw/arm/smmuv3-accel.h    |   8 +++
 hw/arm/smmuv3-internal.h |   4 ++
 hw/arm/smmuv3.c          |  25 ++++++--
 hw/arm/trace-events      |   2 +-
 include/system/iommufd.h |  12 ++++
 8 files changed, 199 insertions(+), 9 deletions(-)

-- 
2.43.0