Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0A312EFCBD4 for ; Mon, 16 Mar 2026 08:02:26 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1w22tO-0001dI-72; Mon, 16 Mar 2026 04:01:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1w22sh-00015k-8Q for qemu-devel@nongnu.org; Mon, 16 Mar 2026 04:00:55 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1w22sT-00083u-Ar for qemu-devel@nongnu.org; Mon, 16 Mar 2026 04:00:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1773648035; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VU+AVgjPf8924LiZz6NH5O1/3ktuuTWlwWqJRlY+znM=; b=hBXBO1GMdIW7SifCh7X/AEz4Em2wcpvhFRaUIFnp6QrunxG2OEnGxpdk8H39BWyN1m0NPn N3FymIfzBe2EhSDnaUTPjOVIGl1yslq80U48pYmk4QESrbfBkHAYwTJGMF3fYYL/y/1rtt i+x0qcBFoHqMLyaazG8Ca9Yfni+TTXg= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-191-BfBa5LVsNT-GfWZ2EMUXmA-1; Mon, 16 Mar 2026 04:00:33 -0400 X-MC-Unique: BfBa5LVsNT-GfWZ2EMUXmA-1 X-Mimecast-MFC-AGG-ID: BfBa5LVsNT-GfWZ2EMUXmA_1773648032 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-48542d5aa9eso35038215e9.0 for ; Mon, 16 Mar 2026 01:00:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773648032; x=1774252832; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VU+AVgjPf8924LiZz6NH5O1/3ktuuTWlwWqJRlY+znM=; b=NBr83neaKJKWP6CiHvPur3xOM3pjE7L7LXdr8PQt4gFW1qR0x/Y21yNmyU4YBO3jYt gtp2nj4dT0flW1aNEbtqb37GpYFXadnuSLqpslxKhCmH+rad7UqfghilmUpWvKptvPL3 jrlv+nHOjaoOd1KBemNDyE0TIR5Sba1dIU/2nmufylv+P+/9S+2AEB+ft1xWCJIV8ANq JfqZvEZPRnHRM5612Jk+QThW9NC5CmdhvAFloV51/qZcLdS+CogkBtXmnkinl5hiRqUv pDCtPBZ+OP4g1eHxHlTZD3s/sxKY5b8lKGkx9aHrss5BV5ELpFjd/tVbFTjhxtqqlXwj LTIw== X-Forwarded-Encrypted: i=1; AJvYcCXVjMC8BqwdH2SVkEY3p9ly9n/Th/BKZSUer+bhvDeeJujt0lofeE8JCqnMhcS9H+R7hSbhn3SxUd34@nongnu.org X-Gm-Message-State: AOJu0Yx7KZLtjek0dycMmJTxklucVVjPg294ydTypRseFMrrsaPG6A2T um5EybyDz9deS+agwHiI/Xsjjh0cfTbfTxKiLYdL0cNCb8slr7Vb6hfodGkEr+lHE9ysd9KFs+M dLIzu0BFqO+rR6QRnV8i0m0gh5A+nfZ/6LLKO5OWQ4nGNpfKm1G6QNEre X-Gm-Gg: ATEYQzxzXOcZ1SRX0yCnI6PIGwZHo16TN/tpawRRRv2i1Q+3q1nEL3VOBIkNkBS+TPW WMFzRgNHHAdj6lJHpT473iY9qOPcGu5pI11et5qwAVTRVlaLgrp6xCDOHb3gXs/oVU0YlxDU8JX oUowC5VLlWK0s0zmgyxt/OcA92meDLKu8WUSy91Jrsng1ejo9kvMK8b4GVua+GZuxs1+rLa5DZN pBtYbbHa8pME894UnglN840rDivDC9qWDMLhuwVCksLCvHsq0p+mejILMGzQJsFkCioLm8c3Vav U1boD2XNKXOYyufKykZdmeODgLqB6DSyyDXlgC4ia1pJGJzqSDmCAUsIIjNV+Svl3POjLjilhl/ 0oI+6RULo36KI7d50eBUf1xNCEtrB0zH9PqrbADJ6SAYgk0XNX1Kbg+sADx6w3KgdpnCDug== X-Received: by 2002:a05:600c:8289:b0:485:3a93:3a9e with SMTP id 5b1f17b1804b1-485566d671cmr198381675e9.10.1773648031947; Mon, 16 Mar 2026 01:00:31 -0700 (PDT) X-Received: by 2002:a05:600c:8289:b0:485:3a93:3a9e with SMTP id 5b1f17b1804b1-485566d671cmr198380975e9.10.1773648031371; Mon, 16 Mar 2026 01:00:31 -0700 (PDT) Received: from ?IPV6:2a01:e0a:f0e:9070:527b:9dff:feef:3874? ([2a01:e0a:f0e:9070:527b:9dff:feef:3874]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48557a7473fsm84071995e9.14.2026.03.16.01.00.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Mar 2026 01:00:24 -0700 (PDT) Message-ID: <6c12bb86-6004-4ba6-b46e-e66da41f2e9c@redhat.com> Date: Mon, 16 Mar 2026 09:00:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 8/8] qemu-options.hx: Document arm-smmuv3 device's accel properties Content-Language: en-US To: Nathan Chen , qemu-devel@nongnu.org, qemu-arm@nongnu.org Cc: Peter Maydell , "Michael S . Tsirkin" , Igor Mammedov , Ani Sinha , Shannon Zhao , Paolo Bonzini , =?UTF-8?Q?Daniel_P_=2E_Berrang=C3=A9?= , Eduardo Habkost , Eric Blake , Markus Armbruster , Shameer Kolothum , Nicolin Chen , Matt Ochs References: <20260312210328.2016191-1-nathanc@nvidia.com> <20260312210328.2016191-9-nathanc@nvidia.com> From: Eric Auger In-Reply-To: <20260312210328.2016191-9-nathanc@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.129.124; envelope-from=eric.auger@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.819, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.903, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: eric.auger@redhat.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 3/12/26 10:03 PM, Nathan Chen wrote: > From: Nathan Chen > > 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. > > Signed-off-by: Nathan Chen > --- > qemu-options.hx | 29 ++++++++++++++++++++++++++++- > 1 file changed, 28 insertions(+), 1 deletion(-) > > diff --git a/qemu-options.hx b/qemu-options.hx > index 890c4f1d23..836de4532c 100644 > --- a/qemu-options.hx > +++ b/qemu-options.hx > @@ -1274,13 +1274,40 @@ 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 try to leverage host SMMUv3 features for acceleration. Enables guest to leverage > + By default, enabling accel configures the host SMMUv3 in nested mode to I would remove "By default, " > + support vfio-pci pass-through. passthrough > + > + ``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: Besides, Reviewed-by: Eric Auger Eric