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 55E7AEF8FFC for ; Wed, 4 Mar 2026 16:38:12 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vxpEd-0000T3-Vm; Wed, 04 Mar 2026 11:38:09 -0500 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 1vxpEb-0000SY-Jk for qemu-arm@nongnu.org; Wed, 04 Mar 2026 11:38:05 -0500 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 1vxpEa-0007t6-4n for qemu-arm@nongnu.org; Wed, 04 Mar 2026 11:38:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1772642283; 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=8brnyqqtWbtIOxiPRqwBOxDFBXvm2/fcZcwh2WUTBqY=; b=Jc4Qm39w1wSn6LLUsaCDG0q4YN8LOQThz3u0Z8CvFC2Pw1Yk8XtdHlBNe9sjGr6/4nuMYh BDav4dd+3q2hAtUJz4PQyNfaxMH8NK/IwQ+kCRs7LFY7kmkynQs/tC8PZDX0Ecub3MGmjs GLsPY6vkPKWGC4qck6pMOVzxUTyybYU= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-267-SP-_mm8nN8WLFCfIqII33A-1; Wed, 04 Mar 2026 11:38:00 -0500 X-MC-Unique: SP-_mm8nN8WLFCfIqII33A-1 X-Mimecast-MFC-AGG-ID: SP-_mm8nN8WLFCfIqII33A_1772642279 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4837b9913c9so53498005e9.0 for ; Wed, 04 Mar 2026 08:37:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772642279; x=1773247079; 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=8brnyqqtWbtIOxiPRqwBOxDFBXvm2/fcZcwh2WUTBqY=; b=NvsgfIQ46lcc9mfEBbCSQjUy+djrCl+4y9dAN6ZJgGS56WW7WzeQr+ZMn0pwuu8GlH ibE3+vVqkG3zbht6wqfsSibOGIuDQx7Nh2XujPP7eUPz9fjRYzCoFPu9K8CRoVDMQLg1 axm4hUCxsgFqyOxZr3r22CGaA8hpDtng3r/wjZJp4UXkIKMoYZl32LnPWcI+poOZqNn5 14iWQQRV59Tqbre4nPgF6j4v4CZeV+7dSrOfQlJv6blZteBJBHri2NQfe+xKXSOiTva0 ni5qhcWFJBDxbFEL1ZYgy1z9DlqHTmHH3S5Ow4PJhgEtNs4caed++8Zi7+s43+WyjpSr D81w== X-Gm-Message-State: AOJu0Yw/X13IKXQxqo14gIo6xKQLmcv9eXhmZ/wPWH5fuiK3T5AYDW8Q L27jNeMTu3Nih12znnkHvRZ/zzFO2UuURIXwvmboOxMVuq1IbBbEE0Grum0WC8o1Gaw6u67B9Ru FgHA4FnWQF/BZwKZMP8bH+2WYvTA4nxG5bXl1iYZo0L1ijQHBSWsomw== X-Gm-Gg: ATEYQzzoVNAB4am7iLJDrdag9TGgcleHvaY8moSmRjqSrVZceh5RAY4M9IwjfIaZjgO xKlBI+LOG1nvAiQJ279L6LwCF9u3pYWmbGCB5jlrMqf8Z66DswO56frRslMHke+F0dRHwfySvv4 YG6iUnWfHrOg7AaJQSbGQ2/28INFOQgeBbUfAXH4aPce1Tp0eNNVOfexC1mMBCS2f4LCCk9tgam 3eTxLKCG4oNq6NdEM7w6zx+iNUDU5RwgsxPw8UuWsFRdpZZZEsUfubusH8p8vAPuVeTNdTYxLFO TvxEEcy90NdMYMEV0VYa4t9wWCsxY3MaEhUDSeYaNfb6uB9TYuLfn8c44wJrfc7pUx/UDM5caH8 YX0j0HGtpvL7SShDZN6uKBXCi1oYXWJLRHL4uKi6D23+IeD6L4+wQh5kQQqMnXIySG9UtbA== X-Received: by 2002:a05:600c:4e8a:b0:47e:e9c9:23bc with SMTP id 5b1f17b1804b1-4851989fb4cmr39239425e9.30.1772642278689; Wed, 04 Mar 2026 08:37:58 -0800 (PST) X-Received: by 2002:a05:600c:4e8a:b0:47e:e9c9:23bc with SMTP id 5b1f17b1804b1-4851989fb4cmr39238895e9.30.1772642278199; Wed, 04 Mar 2026 08:37:58 -0800 (PST) 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-4851acfbd1bsm20826565e9.6.2026.03.04.08.37.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Mar 2026 08:37:57 -0800 (PST) Message-ID: Date: Wed, 4 Mar 2026 17:37:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 31/37] hw/arm/smmuv3-accel: Add property to specify OAS bits To: Shameer Kolothum Thodi , Jason Gunthorpe , Pavel Hrdina Cc: "qemu-arm@nongnu.org" , "qemu-devel@nongnu.org" , "peter.maydell@linaro.org" , Nicolin Chen , "ddutile@redhat.com" , "berrange@redhat.com" , "clg@redhat.com" , "alex@shazbot.org" , Nathan Chen , Matt Ochs , "smostafa@google.com" , "wangzhou1@hisilicon.com" , "jiangkunkun@huawei.com" , "jonathan.cameron@huawei.com" , "zhangfei.gao@linaro.org" , "zhenzhong.duan@intel.com" , "yi.l.liu@intel.com" , Krishnakant Jaju References: <20260126104342.253965-1-skolothumtho@nvidia.com> <20260126104342.253965-32-skolothumtho@nvidia.com> <20260202151917.GO2223369@nvidia.com> <20260202160000.GR2223369@nvidia.com> <41aaf959-b417-469e-89aa-41c20a4b906c@redhat.com> From: Eric Auger In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: NpLQxz6vz449Vp4YB0YFUGWGOSDJP3ISpVZqgm_zZTE_1772642279 X-Mimecast-Originator: redhat.com Content-Language: en-US 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: 0 X-Spam_score: -0.0 X-Spam_bar: / X-Spam_report: (-0.0 / 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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.703, RCVD_IN_VALIDITY_SAFE_BLOCKED=1.386, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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: , Reply-To: eric.auger@redhat.com Errors-To: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Hi Shameer, On 3/4/26 9:26 AM, Shameer Kolothum Thodi wrote: > Hi Eric, > >> -----Original Message----- >> From: Eric Auger >> Sent: 04 March 2026 07:47 >> To: Shameer Kolothum Thodi ; Jason Gunthorpe >> ; Pavel Hrdina >> Cc: qemu-arm@nongnu.org; qemu-devel@nongnu.org; >> peter.maydell@linaro.org; Nicolin Chen ; >> ddutile@redhat.com; berrange@redhat.com; clg@redhat.com; >> alex@shazbot.org; Nathan Chen ; Matt Ochs >> ; smostafa@google.com; wangzhou1@hisilicon.com; >> jiangkunkun@huawei.com; jonathan.cameron@huawei.com; >> zhangfei.gao@linaro.org; zhenzhong.duan@intel.com; yi.l.liu@intel.com; >> Krishnakant Jaju >> Subject: Re: [PATCH v9 31/37] hw/arm/smmuv3-accel: Add property to specify >> OAS bits >> > [...] >>> This is how the usage would look with an added "ats" property on the >>> vfio-pci device: >>> >>> -device vfio-pci,...,ats=on >>> if ATS_NOT_SUPPORTED then reject >>> -device vfio-pci,...,ats=off >>> keep ATS off >>> -device vfio-pci,...,ats=auto (default) >>> if ATS_NOT_SUPPORTED, disable ATS >>> otherwise, enable ATS if the PCIe ATS capability is present >>> (this also covers behaviour on older kernels) >>> >>> Does the above make sense? >> Do you have plans wrt the migration to auto properties for the various >> vSMMU properties (RIL, ssidsize, OAS, ATS)? I just would like to make >> sure libvirt integrators take this new design into account. >> Please let me know if some help is needed for the conversion of some of >> the properties? > Yes, Nathan is working on a QEMU series to convert those to auto > properties. I have also sent out a kernel series to report the effective > ATS status for the device. Sorry, I missed CCing you on that thread. > Please find it here [0]. The QEMU series needs to make use of this > as well. > > Hopefully, Nathan will be able to send out the QEMU series soon after > internal review and testing. > > Thanks, > Shameer > [0] https://lore.kernel.org/linux-iommu/20260303150348.233997-1-skolothumtho@nvidia.com/ > Thank you for the update & pointers! Eric >