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 D1611CCF9E0 for ; Tue, 28 Oct 2025 02:13:50 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vDZDM-0008SL-3E; Mon, 27 Oct 2025 22:13:36 -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 1vDZDL-0008Ru-6e for qemu-arm@nongnu.org; Mon, 27 Oct 2025 22:13:35 -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 1vDZDH-00025c-Oh for qemu-arm@nongnu.org; Mon, 27 Oct 2025 22:13:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1761617598; h=from:from: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=ZLYe9AOWl7pPQRY2B72dm5ypE/vO29Drc46QIp7wmwE=; b=LqKfiN9TsykMBcALYXCvEHlAwZUBPTu+MPs863ae46vQ86Rqt1yLp3n+46YXXDWH3ZG8r0 pAuuI0/ZOI3ZEJfxqkOn/Yjhe5pK/oF7CP/gPgcQgIsIZz51RQgrpo3Kr0BxBUgEjG/oQk zizByj0G0YW3enD5/wGrm8PgKkpoyOY= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-361-ebz_R5MPMGqiFJHFv2Ngrw-1; Mon, 27 Oct 2025 22:13:15 -0400 X-MC-Unique: ebz_R5MPMGqiFJHFv2Ngrw-1 X-Mimecast-MFC-AGG-ID: ebz_R5MPMGqiFJHFv2Ngrw_1761617595 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-87c0f8cbe6fso139725116d6.0 for ; Mon, 27 Oct 2025 19:13:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761617595; x=1762222395; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZLYe9AOWl7pPQRY2B72dm5ypE/vO29Drc46QIp7wmwE=; b=tXFwktAY7ImaiqQT0NaAx/8qnuWIGQ61ifybtAehNXq5rxsc0ULsJIqJXsTJrSWWBw KeUUq0jt3ENNyZ46up8vuFYMQJv+X/E8H8sttoduxWIJ42aVjppzeYVpTWLJ4FT+uVwD JvnEvrN1KkTL8ZLXVNSpd7KCZ0cavYzAB7M3kn+K4q15Nb9qsZ50txTik/F6ysCpsMFi GegcfwMIUs9rBIXX4kshGaVIVhw83hwF78deotFi0AHxXm2Zh1TfX6JsutU+nXfpcAgD J2WbqELl3ArJXvJD31Q7mb7k7u6YVH/ViAeHZQDNRePM9Sa+AWf8pd7YHHs//oM5Bxqg 8xLw== X-Gm-Message-State: AOJu0YxlkLpBke6PlMhlLGZJHuZIza1bYIt3RMXa+jE6IwCIGzD/BUqx 6AvwfvFn5yKIuYb66aqiqOh1tJPu2RkSWMA06nhNleFHBBPhF29pbCXXnDmJxzKaMelkLeVCFWM BlKfgVLUW6TvSj+xLm21FijdZ4hdtutmbCRE0gsW++DpLyXIZi+LpnQ== X-Gm-Gg: ASbGnctyawnOBjcCW06XrUqEUbTu+vbV31CfiHTrN8AMJZ6nfZd44bnYAa/Tw75cpZl 3rMYW+tV7v+TrCk5xDbgYAfuwZMMgsvt1/q1oBr+TXIS+lryTVrNQAAGcx8mLf032OaI3uXD2Py Ttt0c3aDmgDJUW+n3PqZccwZK1O3euJxE22752lN95064FogaPX0q6NZmrBZOLeON65H4Gh++20 0mO3GfxQEwcPfKEDJrhseAUTML+GFMsDiSNv+EezVCn8cfFGVzww9lKRxH+LMpzcccsMlZT5Kw5 GQwEKJfGR5aP4Dt2A8BCcj7TP8fc0dqhppD0TzAGLEz7jJE6J5UDv4l6wDqyVlvZ1MDDgObdqNg = X-Received: by 2002:a05:620a:450f:b0:892:7dd2:9f14 with SMTP id af79cd13be357-8a6f47d049cmr275748285a.25.1761617594991; Mon, 27 Oct 2025 19:13:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHktz2vJHRa9etpRmyqikOSZkSMHecWN+F5LxZn+rGi5z6+eGx2o9R/xf7px/SUvkxnkbmv0w== X-Received: by 2002:a05:620a:450f:b0:892:7dd2:9f14 with SMTP id af79cd13be357-8a6f47d049cmr275745785a.25.1761617594613; Mon, 27 Oct 2025 19:13:14 -0700 (PDT) Received: from [192.168.40.164] ([70.105.235.240]) by smtp.gmail.com with ESMTPSA id af79cd13be357-89f2421fc4csm717517185a.10.2025.10.27.19.13.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Oct 2025 19:13:14 -0700 (PDT) Message-ID: <5e897607-2c33-46f2-b2ab-579a2f4b6385@redhat.com> Date: Mon, 27 Oct 2025 22:13:11 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] docs/system/arm/virt: Document user-creatable SMMUv3 To: eric.auger@redhat.com, Peter Maydell , Shameer Kolothum Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, nicolinc@nvidia.com, nathanc@nvidia.com, mochs@nvidia.com, jonathan.cameron@huawei.com References: <20251024084350.252702-1-skolothumtho@nvidia.com> From: Donald Dutile In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: FDr5BYkAMYwKhGVe0tEk7LKTHpAMuRtMsh7wGojJJok_1761617595 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.129.124; envelope-from=ddutile@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, WEIRD_QUOTING=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org On 10/27/25 10:13 AM, Eric Auger wrote: > > > On 10/27/25 12:27 PM, Peter Maydell wrote: >> On Fri, 24 Oct 2025 at 09:46, Shameer Kolothum wrote: >>> The virt machine now supports creating multiple SMMUv3 instances, each >>> associated with a separate PCIe root complex. >>> >>> Update the documentation with an example. >>> >>> Signed-off-by: Shameer Kolothum >> Thanks. I have some minor word-smithing tweaks, but I'll just >> apply them to this patch in target-arm.next if you're OK with >> that: >> >> >> --- a/docs/system/arm/virt.rst >> +++ b/docs/system/arm/virt.rst >> @@ -224,23 +224,24 @@ SMMU configuration >> """""""""""""""""" >> >> Machine-wide SMMUv3 IOMMU >> - See the machine-specific ``iommu`` option above. This allows specifying >> - a single, machine-wide SMMUv3 instance that applies to all devices in >> - the PCIe topology. >> + Setting the machine-specific option ``iommu=smmuv3`` causes QEMU to >> + create a single, machine-wide SMMUv3 instance that applies to all >> + devices in the PCIe topology. >> >> For information about selectively bypassing devices, refer to >> ``docs/bypass-iommu.txt``. >> >> User-creatable SMMUv3 devices >> - Allows creating multiple user-defined SMMUv3 devices, each associated >> - with a separate PCIe root complex. This is only permitted if the >> - machine-wide SMMUv3 (``iommu=smmuv3``) option is not used. >> + You can use the ``-device arm-smmuv3`` option to create multiple >> + user-defined SMMUv3 devices, each associated with a separate PCIe >> + root complex. This is only permitted if the machine-wide SMMUv3 >> + (``iommu=smmuv3``) option is not used. Each ``arm-smmuv3`` device >> + uses the ``primary-bus`` sub-option to specify which PCIe root >> + complex it is associated with. >> >> This model is useful when you want to mirror a host configuration where >> each NUMA node typically has its own SMMU, allowing the VM topology to >> - align more closely with the host’s hardware layout. Supporting multiple >> - SMMUv3 instances is also a prerequisite for future accelerated SMMUv3 >> - support. >> + align more closely with the host’s hardware layout. >> >> Example:: >> >> >> >> >> (I deleted the sentence about SMMU acceleration because that >> isn't upstream yet. When it lands then we can update the >> docs if the version of it that lands can't support acceleration >> of a single machine-wide accelerator.) >> >> thanks >> -- PMM >> > Looks good to me as well > > Fell free to add my R-b > > Reviewed-by: Eric Auger > > Thanks! > > Eric > +1; looks good; can add my r-b if another is desired/needed. - Don > > >