From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists1p.gnu.org (lists1p.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 093AFC5DF94 for ; Fri, 21 Aug 2026 15:02:14 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wxQkm-0001Ar-Cm; Fri, 21 Aug 2026 11:01:56 -0400 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 1wxQkk-0001AE-Sz for qemu-arm@nongnu.org; Fri, 21 Aug 2026 11:01:54 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wxQki-0007rF-MR for qemu-arm@nongnu.org; Fri, 21 Aug 2026 11:01:54 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-495590dde14so9835475e9.0 for ; Fri, 21 Aug 2026 08:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1787324511; x=1787929311; 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=wcgTPIPEEcyDjQzsJSz/BrGPi75SyypM30Btlcy9NRE=; b=ktRPWtMYLow7LcqV14NfHQ7KJFT1IgC/oOkCivOBd6B2s3k/ilkRToH1A47FneeNP5 lzQHJJ18IJM/3Sodd6UeaHqNr2w0FrWNjjvmBuzJBv3hkNiEFF/tl07d2W4vX/by4HxA +BP6V7UwbHt74ONwGlRy1NcvEXWRjXuAyAP9/SjzP4iugtH0B+k9Mrlw5KIwIXJ2GuBa 55M70LqUTT7nZQSoLpmfSvRgU0KMJeGLLPLYpgHeZXq77SuBenIrkEaRRwkZeUpPRHEE bgUrBAi9MdoHBMcuZ6VQ10qyw3yu6DmBq0cQZ2kWUmmXOr4BE/R8HjKQHwE56RRXCz9E ApFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787324511; x=1787929311; 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=wcgTPIPEEcyDjQzsJSz/BrGPi75SyypM30Btlcy9NRE=; b=O6uFQkO7jL0iI4niFFWe3wBs81OzitHy1nzNmqWLyEZfB40uQV52lfWq6c7G2Lg5qy cGSj55S5vVqcpBa+4qzxrrTMpB6tepjvycmA3CAWROnrXWQzikGJi0Q7ABifcpU+TIpO Wbo/68vDSGbvX3N1LDS4vP1QrI0LqA8+w3zIadoVoYria5Y+IWxwTtBfcxhnt3gD7/O8 hkzyOoF1j1+9U3MSy2dVz3YPV0xIdl2YoPO7xdn815jKrYV9lHflDwz6o7WG7fnkOFoi pN7AAXknRccrBXdJ4q2sDs77qYecS/TI2efypGIVW4D024b7oeLg8vy0F0/6Q8ZtVlD8 eysQ== X-Forwarded-Encrypted: i=1; AHgh+RpRw7GDiYDSQgBeGxKrnFZ74T2xOljBFL26dkIRkzQcVgB5cJDlfcnEWowVPhejHHsPc4L6NmoOiQ==@nongnu.org X-Gm-Message-State: AOJu0YwfW5f6BkEJVTu/WWX32W9ElwBbhq/YzyyKYQfuCXB+Sxh324lm 0iKtD4+Impfmz7NlHXB0ckET8NYI2b+52fMv8rvK4d0nhFwyMUCB5bmA6yBkQALRnGs= X-Gm-Gg: AR+sD117IxDsFJJ+qKds3L6yJ8bEmoMBPQ7jiYDCbzUt9YjO3pL3sSJBnIaFbw8S5gu h9xZnIFeg6fS8QBpPRtQkNCnGv3y2k9SJXS2wlINuiCwYzJ+UZgAbweY8uSTEoZKlg7dJjtvYyc Tidr43+5SrtJxQwu6nEG7y2CnpaRZhAQXA0gqGJIdrsXmXUobamqTlDJZDGqN6OxmP996i9/qe6 vp8oqewMfCB4vhfkbLVjP9xMafOcXyaLHo2N7jiI4pblwa2UygMU8gaJyOyr7sn1zcvrJbycbaN mzYCx8f9wQkXxPBF6DR/TQbrOnBCIim79wlOoPQAlNAGb0XX+pqHGW6jdOLygeb71u+FnVX0Gui p4K18YBnRhMaX6ws2bY9aCtov3FVt4y7v32IaBBrucqvtBWMM+7Fq9uj+Y/dSAEaXGCJ0wALwzg lB51qIjh2JyJrIh86LVF0nu5uqBSwm3VlXLdiXL6MhQEBM/YTFgs47jCnesuo8izs= X-Received: by 2002:a05:600c:4e56:b0:495:4859:8f9b with SMTP id 5b1f17b1804b1-499b8454b9cmr119150295e9.9.1787324510823; Fri, 21 Aug 2026 08:01:50 -0700 (PDT) Received: from linaro.org ([2a10:d582:31e:0:fa47:b339:78a1:d4c6]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-499b9049f84sm30884575e9.0.2026.08.21.08.01.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2026 08:01:50 -0700 (PDT) Date: Fri, 21 Aug 2026 16:01:48 +0100 From: Jim MacArthur To: Tao Tang Cc: Eric Auger , Peter Maydell , qemu-devel@nongnu.org, qemu-arm@nongnu.org, Chen Baozi , Pierrick Bouvier , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Mostafa Saleh , Chao Liu Subject: Re: [RFC v5 08/28] hw/arm/smmu-common: Key configuration cache on SMMUDevice and SEC_SID Message-ID: References: <20260813161515.2788900-1-tangtao1634@phytium.com.cn> <20260813162446.2806393-3-tangtao1634@phytium.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260813162446.2806393-3-tangtao1634@phytium.com.cn> Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=jim.macarthur@linaro.org; helo=mail-wm1-x335.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=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 Fri, Aug 14, 2026 at 12:24:44AM +0800, Tao Tang wrote: > Adapt the configuration cache to distinguish entries decoded through > different SEC_SID-selected programming interfaces by introducing a > composite SMMUConfigKey. The key combines SMMUDevice with SEC_SID, > preventing Secure and Non-secure configuration entries from aliasing in > the cache and leaving the key extensible for a future Realm SEC_SID > namespace. > > The cache lookup, insertion, and invalidation mechanisms are updated to > use this new keying infrastructure. > > Signed-off-by: Tao Tang > Reviewed-by: Eric Auger > Reviewed-by: Pierrick Bouvier > Link: https://lore.kernel.org/qemu-devel/a9a840a6-c65f-4352-9a49-ddd1b5483f43@redhat.com/ > --- > hw/arm/smmu-common.c | 45 ++++++++++++++++++++++++++++++++++-- > hw/arm/smmuv3.c | 12 ++++++---- > include/hw/arm/smmu-common.h | 7 ++++++ > 3 files changed, 57 insertions(+), 7 deletions(-) > Reviewed-by: Jim MacArthur