public inbox for qemu-devel@nongnu.org
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Subject: [PULL 11/11] qemu-options.hx: Document arm-smmuv3 device's accel properties
Date: Tue, 24 Mar 2026 15:11:11 +0000	[thread overview]
Message-ID: <20260324151111.237411-12-peter.maydell@linaro.org> (raw)
In-Reply-To: <20260324151111.237411-1-peter.maydell@linaro.org>

From: Nathan Chen <nathanc@nvidia.com>

Document arm-smmuv3 properties for setting HW-acceleration,
Range Invalidation, and Address Translation Services support, as
well as setting Output Address size and Substream ID size.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Shameer Kolothum <skolothumtho@nvidia.com>
Tested-by: Shameer Kolothum <skolothumtho@nvidia.com>
Signed-off-by: Nathan Chen <nathanc@nvidia.com>
Message-id: 20260323182454.1416110-9-nathanc@nvidia.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 qemu-options.hx | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/qemu-options.hx b/qemu-options.hx
index dbcb0155ba..21972f8326 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -1279,13 +1279,43 @@ SRST
     ``aw-bits=val`` (val between 32 and 64, default depends on machine)
         This decides the address width of the IOVA address space.
 
-``-device arm-smmuv3,primary-bus=id``
+``-device arm-smmuv3,primary-bus=id[,option=...]``
     This is only supported by ``-machine virt`` (ARM).
 
     ``primary-bus=id``
         Accepts either the default root complex (pcie.0) or a
         pxb-pcie based root complex.
 
+    ``accel=on|off`` (default: off)
+        Enables guest to leverage host SMMUv3 features for acceleration.
+        Enabling accel configures the host SMMUv3 in nested mode to support
+        vfio-pci passthrough.
+
+     The following options are available when accel=on.
+     Note: 'auto' mode is not currently supported.
+
+    ``ril=on|off`` (default: on)
+        Support for Range Invalidation, which allows the SMMUv3 driver to
+        invalidate TLB entries for a range of IOVAs at once instead of issuing
+        separate commands to invalidate each page. Must match with host SMMUv3
+        Range Invalidation support.
+
+    ``ats=on|off`` (default: off)
+        Support for Address Translation Services, which enables PCIe devices to
+        cache address translations in their local TLB and reduce latency. Host
+        SMMUv3 must support ATS in order to enable this feature for the vIOMMU.
+
+    ``oas=val`` (supported values are 44 and 48. default: 44)
+        Sets the Output Address Size in bits. The value set here must be less
+        than or equal to the host SMMUv3's supported OAS, so that the
+        intermediate physical addresses (IPA) consumed by host SMMU for stage-2
+        translation do not exceed the host's max supported IPA size.
+
+    ``ssidsize=val`` (val between 0 and 20. default: 0)
+        Sets the Substream ID size in bits. When set to a non-zero value,
+        PASID capability is advertised to the vIOMMU and accelerated use cases
+        such as Shared Virtual Addressing (SVA) are supported.
+
 ``-device amd-iommu[,option=...]``
     Enables emulation of an AMD-Vi I/O Memory Management Unit (IOMMU).
     Only available with ``-machine q35``, it supports the following options:
-- 
2.43.0



  parent reply	other threads:[~2026-03-24 15:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-24 15:11 [PULL 00/11] target-arm queue Peter Maydell
2026-03-24 15:11 ` [PULL 01/11] target/arm: fix s2prot not set for two-stage PMSA translations Peter Maydell
2026-03-24 15:11 ` [PULL 02/11] linux-user/i386/signal.c: Correct definition of target_fpstate_32 Peter Maydell
2026-03-24 15:11 ` [PULL 03/11] hw/dma/pl080: Fix transfer logic in PL080 Peter Maydell
2026-03-24 15:11 ` [PULL 04/11] hw/arm/smmuv3-accel: Check ATS compatibility between host and guest Peter Maydell
2026-03-24 15:11 ` [PULL 05/11] hw/arm/smmuv3-accel: Change "ats" property type to OnOffAuto Peter Maydell
2026-03-24 15:11 ` [PULL 06/11] hw/arm/smmuv3-accel: Change "ril" " Peter Maydell
2026-03-24 15:11 ` [PULL 07/11] qdev: Add a SsidSizeMode property type Peter Maydell
2026-03-24 15:11 ` [PULL 08/11] hw/arm/smmuv3-accel: Change "ssidsize" property type to SsidSizeMode Peter Maydell
2026-03-24 15:11 ` [PULL 09/11] qdev: Add an OasMode property type Peter Maydell
2026-03-24 15:11 ` [PULL 10/11] hw/arm/smmuv3-accel: Change "oas" property type to OasMode Peter Maydell
2026-03-24 15:11 ` Peter Maydell [this message]
2026-03-24 18:35 ` [PULL 00/11] target-arm queue Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260324151111.237411-12-peter.maydell@linaro.org \
    --to=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox