qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] vEVENTQ support for accelerated SMMUv3 devices
@ 2025-11-05 15:46 Shameer Kolothum
  2025-11-05 15:46 ` [RFC PATCH 1/4] backends/iommufd: Introduce iommufd_backend_alloc_veventq Shameer Kolothum
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Shameer Kolothum @ 2025-11-05 15:46 UTC (permalink / raw)
  To: qemu-arm, qemu-devel
  Cc: eric.auger, peter.maydell, nicolinc, nathanc, mochs,
	jonathan.cameron, zhangfei.gao, zhenzhong.duan, jgg, kjaju

Hi,

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

This series adds support in QEMU to receive such host events through a
vEVENTQ object and propagate them to the guest. The implementation
leverages the vEVENTQ interface provided by the IOMMUFD kernel subsystem.

This is being sent as an RFC since it depends on the "Add support for
user-creatable accelerated SMMUv3" series which is currently under
discussion[0].

I have lightly tested this on a Grace platform with some hacks to generate
faults events. Further testing and feedbacks welcome.

Thanks,
Shameer
[0] https://lore.kernel.org/qemu-devel/20251031105005.24618-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    | 123 +++++++++++++++++++++++++++++++++++++++
 hw/arm/smmuv3-accel.h    |   8 +++
 hw/arm/smmuv3-internal.h |   4 ++
 hw/arm/smmuv3.c          |  28 +++++++--
 hw/arm/trace-events      |   2 +-
 include/system/iommufd.h |  12 ++++
 8 files changed, 202 insertions(+), 7 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-11-14  8:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-05 15:46 [RFC PATCH 0/4] vEVENTQ support for accelerated SMMUv3 devices Shameer Kolothum
2025-11-05 15:46 ` [RFC PATCH 1/4] backends/iommufd: Introduce iommufd_backend_alloc_veventq Shameer Kolothum
2025-11-05 15:46 ` [RFC PATCH 2/4] hw/arm/smmuv3-accel: Allocate vEVENTQ for accelerated SMMUv3 devices Shameer Kolothum
2025-11-05 15:46 ` [RFC PATCH 3/4] hw/arm/smmuv3: Introduce a helper function for event propagation Shameer Kolothum
2025-11-05 15:46 ` [RFC PATCH 4/4] hw/arm/smmuv3-accel: Read and propagate host vIOMMU events Shameer Kolothum
2025-11-11 13:29   ` Jonathan Cameron via
2025-11-13 11:59   ` Zhangfei Gao
2025-11-13 13:07     ` Shameer Kolothum
2025-11-13 17:44       ` Nicolin Chen
2025-11-14  8:45         ` Zhangfei Gao
2025-11-14  8:55           ` Shameer Kolothum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).