From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DA21606A918 for ; Mon, 26 Oct 2026 08:30:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=pc7IGIuY; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=eNjS8GtB DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=G63bq4wpgZslgc8Jrbf5zqBVwNjBpTm05EKH4grfb9g=; b=pc7IGIuYW5sXoEoYLFPwdAKiIt bP0iSPTtxeS2mbRo9oJsfEav+22MZIVlODRAGn9WZ30mrSShgKNwv44jOf2l65ovAzXNmMvRkm9GQ LCAp1FvguUVutQ95cIt3nA6aBjDHJsqXfU3fzBQlCATWVqKlQFwr+0AG1gGWcmSx9pc5QPqUW6tBO R7LY+rzij7gC3q1lLJmnc921Hw6xKv7CUqMxZ7bqrjP59JIIhMDyUBPXrsnmFgqwVkyqTy1ywkfRv zQpicGaQy70GlurmxzlIbiGbBs1jPsZNgJ/Kn4zbCxU3jKHDsqQOGd8/imUV58N5vwMQEYcw3Hjlz Rrt2wIUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xLG5r-00000001x6R-3lWe; Mon, 26 Oct 2026 08:30:11 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xLG5r-00000001x6B-0C66 for linux-arm-kernel@lists.infradead.org; Mon, 26 Oct 2026 08:30:11 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 27B88601EF; Mon, 26 Oct 2026 08:30:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFF321F01825; Mon, 26 Oct 2026 08:30:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793003409; bh=G63bq4wpgZslgc8Jrbf5zqBVwNjBpTm05EKH4grfb9g=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=eNjS8GtBeBPyA8EYl+0IroArRKZqddmttCe/pqhYkfWRzMvjs0xHUdFA5zBuwJ/dB cexNnd49Tts1u13A+p4i8tn4a6PQV0NVL4aKqOnr5UNq3cxWOoYv8fpIfiswUtP92d Z/9qaxzZpNLLPgIMFYE9xf3BEexK7pTS8AmZRw3kFDaXrDQy/VvVUq+JtED9OnVfGc ZydQEiSyZc1cxdXcaC5pdQtGfR9YCuabQKeK0u7lqpU5YbBU1ouoQYk3TpT3VuHNZj +NcclCy7JnHtweFs19IZK/1wJ01Z598SreYQSegk757HsENmnfVqZE/Na5wDhrrM/1 utx8qgxT6pVpQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xLG5n-00000007ABg-2krT; Mon, 26 Oct 2026 08:30:07 +0000 Date: Mon, 26 Oct 2026 08:30:07 +0000 Message-ID: <861p9czwxc.wl-maz@kernel.org> From: Marc Zyngier To: Itaru Kitayama Cc: Paolo Bonzini , Sean Christopherson , Shuah Khan , Oliver Upton , Fuad Tabba , Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev Subject: Re: [PATCH v3] KVM: arm64: selftests: Test VNCR translation invalidation In-Reply-To: <20261026-b4-vncr-mapping-test-v3-1-7c094a00d46e@fujitsu.com> References: <20261026-b4-vncr-mapping-test-v3-1-7c094a00d46e@fujitsu.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Archived-By: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: itaru.kitayama@fujitsu.com, pbonzini@redhat.com, seanjc@google.com, shuah@kernel.org, oupton@kernel.org, fuad.tabba@linux.dev, joey.gouly@arm.com, seiden@linux.ibm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-6.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Mon, 26 Oct 2026 03:10:10 +0000, Itaru Kitayama wrote: > > Add a standalone KVM selftest that checks VNCR accesses after L1 > updates its stage-1 mapping and issues a TLBI. This guards against > stale VNCR translations, as KVM caches L1's translation of > VNCR_EL2 and must drop it when L1 invalidates the mapping in > kvm_handle_s1e2_tlbi(). > > Keep VNCR_EL2 unchanged while remapping its backing page A to B then > again to A. At each step, L2 reads and writes TPIDR_EL2, and L1 > verifies that the accesses reach the selected page while leaving the > other page unchanged. If you were tracking cross vcpu invalidation and exercising all the architecture corner cases (such as permission changes and co), that would be helpful. But as it is, it doesn't help much as a validation tool. Its scope is way too narrow. M. -- Without deviation from the norm, progress is not possible.