From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2B3E606A325 for ; Tue, 1 Dec 2026 13:16:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=gXMV+2ih Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xYNiH-0006mv-NQ; Tue, 01 Dec 2026 08:16:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYNiF-0006jY-7W for qemu-arm@nongnu.org; Tue, 01 Dec 2026 08:16:03 -0500 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xYNiD-0001b0-Kv for qemu-arm@nongnu.org; Tue, 01 Dec 2026 08:16:02 -0500 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-c51d158acc6so674211666b.0 for ; Tue, 01 Dec 2026 05:16:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796130960; x=1796735760; darn=nongnu.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=k0xeRSh5zR9xInZA+pb/KU/wpaJd+UeNBzX3Xlbeprs=; b=gXMV+2ihziC2kTKw+wmcNzzXOtGrxTkkBnw5AECgFxjvZO+iOPjfa5zGwbhn4s1VFl KG7bVdT1FQMI72qg41kp3UVHEEvyxcQLlmnZh20q1ppPbsuO/QgSoXYMGXGIAL+vfV/z SIX1YDAb5MEaPWATBV5qpIl5zslHITtVdvj2tKy/roKpX25WQt/OpzqJDvsKsNU/8nzC mfADVLe4nizdwpZAlsifZfyScjuJm+W4/kC+i946E0qRhxu3jmJcB82p2i0y3O0eVeP7 IrkR4MqH7EaA5sDTM3TBnf2wRzehZvnRApohFR/oMR9+xICLRTDEhc7r70LwnutI7puF PX3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796130960; x=1796735760; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=k0xeRSh5zR9xInZA+pb/KU/wpaJd+UeNBzX3Xlbeprs=; b=Fw2gSoFm2wUVEhtIMI3IU2kX7oJ4m9OSEeEnez+58PVN2ddOnzhQEBYtm5lpmhOPdh Pz3q2um4azTPkVXYpnnIVgAFsS/2zsn+6qafMYg2kSmwh4bVzRm3XI/6tZfjysVXyAip KctfAGF78/IfrW1vs99KlHU9VFKGfL/4228eRqEFgiAHViLwdjADOSB7Tck6fZGPQTsr SBHZrOqI0v88R6+PKsCZrJudtxCl7i0JbZuJLc4RAlErwUZFdLoxz6bUOA9S1vHpMBa0 eGkzGeWU5GZ2s7VWHRRkxGXoBCoyXKGyBxPYqHvPngdrlpBNr7/19KcFlDY+duwto3Za EhgQ== X-Forwarded-Encrypted: i=1; AL+hErH+8HqiF77wOKOZGgAXbfdb791rW2dbTzd/lWxV8K6TfdKHE9GR7psuEkh0CVQHcGrEcKdJkLxWhg==@nongnu.org X-Gm-Message-State: APuU4Z8jSKg3o0zxcBhFtRq9MR5IweaZaPheGQeS0x3HyG4D2p59Mvjn qq0Dzo8jMiMMq7S2hgptRqki0BzqyKd2JaqIH+m3ifiF1DF332dniOlvTQYu0W2WqI0= X-Gm-Gg: AZFdTZeyYV/tK7aprhTeaif6bTlAYwOBT43ZHFJIEC398waVSDOb1Fr5paJoL1mT+ol VfFOBgGH/JpjlgUJLz4PvvxME0TnOwnrQq4gkMkHpAUIdbf82+pGd71CZJkAq3+0dkEBlhExUGz RmYpQb8Iy9JOvE0/nfTDwoSiVpDvbc/ztecOiib/Y7dZ88qIPh9AtYnbHHsWLlb2HKTSgsp1qsW pffySux3cyJj5Uu+CPBmEQc8kBF3Q6EMi1nuzxuKWYeiWMCtYItsMAKg+QAUPpzvxsE974XjOJH l5KME07ZZw+mxNcdcJKNHnhCRFQWNtv6N7qZordXj+7Ht+ZIGhGseMztEqq4LZClPQdioMFInSd HBzErXOMcPheNL3+B7qSrUXwktnEHWDUva0MxXaGhLG0i4pjaAnVRAmjRRwlTlqKmcCm3XkfoZO dtySArYiW4fHN+n3fDMSg3HeA3JE7Lr2EEp+FE22K2qps9kyXuiHaW0+iHnZXEhh2UBGyY7nl2O fRuMi9XKnq9/TA9PC+bG0zLZusZscmdA+72BkKtmP+bbcx9YckLXkYBUwt1BdNwgwEDVhVrjxpz pLQSVvZSCgi3ZxTdPagXN5/g7OG6wiw= X-Received: by 2002:a17:907:9693:b0:c52:1f8a:6597 with SMTP id a640c23a62f3a-c521f8a67c1mr293256366b.4.1796130959923; Tue, 01 Dec 2026 05:15:59 -0800 (PST) Received: from linaro.org ([2a10:d582:31e:0:98ce:7668:4de0:ee9c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513b03723bsm1244402866b.87.2026.12.01.05.15.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 05:15:59 -0800 (PST) Date: Tue, 1 Dec 2026 13:15:57 +0000 From: Jim MacArthur To: Tao Tang Cc: Peter Maydell , Eric Auger , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , qemu-devel@nongnu.org, qemu-arm@nongnu.org, Pierrick Bouvier , Mostafa Saleh , Chao Liu , Chen Baozi Subject: Re: [PATCH v6 17/35] hw/arm/smmuv3: Scope IOTLB invalidation by SEC_SID Message-ID: References: <20261114154623.3599750-1-tangtao1634@phytium.com.cn> <20261114161753.3645568-8-tangtao1634@phytium.com.cn> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261114161753.3645568-8-tangtao1634@phytium.com.cn> Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=jim.macarthur@linaro.org; helo=mail-ej1-x62b.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Sun, Nov 15, 2026 at 12:17:51AM +0800, Tao Tang wrote: > IOTLB invalidation must select the security state represented in the > cache key. Add SEC_SID matching to the invalidation helpers and propagate > the command queue or command-selected state through TLBI handling. > > Select stage-2 capability from the issuing command queue when deciding > whether to match VMID, including SEL2 for the Secure command queue. > Preserve full-cache invalidation for operations that require it and > include SEC_SID in the affected invalidation traces. > > Signed-off-by: Tao Tang > --- > include/hw/arm/smmu-common.h | 1 + > hw/arm/smmu-common.c | 18 +++++++++++ > hw/arm/smmuv3.c | 62 +++++++++++++++++++++++++++++------- > hw/arm/trace-events | 3 +- > 4 files changed, 71 insertions(+), 13 deletions(-) > Reviewed-by: Jim MacArthur