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

Shameer Kolothum posted 5 patches 1 month, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260226084456.112142-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>
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(-)
[PATCH v8 0/5] vEVENTQ support for accelerated SMMUv3 devices
Posted by Shameer Kolothum 1 month, 1 week ago
Hi,

Changes from v7:
 https://lore.kernel.org/qemu-devel/20260219090103.33697-1-skolothumtho@nvidia.com/
 
 -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/20260225031658.32095-1-philmd@linaro.org/

---
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(-)

-- 
2.43.0
RE: [PATCH v8 0/5] vEVENTQ support for accelerated SMMUv3 devices
Posted by Shameer Kolothum Thodi 1 month ago
Hi Peter,

> -----Original Message-----
> From: Shameer Kolothum Thodi <skolothumtho@nvidia.com>
> Sent: 26 February 2026 08:45
> To: qemu-arm@nongnu.org; qemu-devel@nongnu.org
> Cc: eric.auger@redhat.com; peter.maydell@linaro.org; Nicolin Chen
> <nicolinc@nvidia.com>; Nathan Chen <nathanc@nvidia.com>; Matt Ochs
> <mochs@nvidia.com>; Jiandi An <jan@nvidia.com>; Jason Gunthorpe
> <jgg@nvidia.com>; jonathan.cameron@huawei.com;
> zhangfei.gao@linaro.org; zhenzhong.duan@intel.com; philmd@linaro.org;
> Krishnakant Jaju <kjaju@nvidia.com>; Shameer Kolothum Thodi
> <skolothumtho@nvidia.com>
> Subject: [PATCH v8 0/5] vEVENTQ support for accelerated SMMUv3 devices
> 
> Hi,
> 
> Changes from v7:
>  https://lore.kernel.org/qemu-devel/20260219090103.33697-1-
> skolothumtho@nvidia.com/
> 
>  -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.

Just a gentle ping on this.

If there are no further comments, please consider this for 11.0.

Thanks,
Shameer
Re: [PATCH v8 0/5] vEVENTQ support for accelerated SMMUv3 devices
Posted by Peter Maydell 1 month ago
On Tue, 3 Mar 2026 at 08:22, Shameer Kolothum Thodi
<skolothumtho@nvidia.com> wrote:
>
>
> Hi Peter,
>
> > -----Original Message-----
> > From: Shameer Kolothum Thodi <skolothumtho@nvidia.com>
> > Sent: 26 February 2026 08:45
> > To: qemu-arm@nongnu.org; qemu-devel@nongnu.org
> > Cc: eric.auger@redhat.com; peter.maydell@linaro.org; Nicolin Chen
> > <nicolinc@nvidia.com>; Nathan Chen <nathanc@nvidia.com>; Matt Ochs
> > <mochs@nvidia.com>; Jiandi An <jan@nvidia.com>; Jason Gunthorpe
> > <jgg@nvidia.com>; jonathan.cameron@huawei.com;
> > zhangfei.gao@linaro.org; zhenzhong.duan@intel.com; philmd@linaro.org;
> > Krishnakant Jaju <kjaju@nvidia.com>; Shameer Kolothum Thodi
> > <skolothumtho@nvidia.com>
> > Subject: [PATCH v8 0/5] vEVENTQ support for accelerated SMMUv3 devices
> >
> > Hi,
> >
> > Changes from v7:
> >  https://lore.kernel.org/qemu-devel/20260219090103.33697-1-
> > skolothumtho@nvidia.com/
> >
> >  -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.
>
> Just a gentle ping on this.
>
> If there are no further comments, please consider this for 11.0.



Applied to target-arm.next, thanks.

-- PMM