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 9B0ED606A322 for ; Tue, 1 Dec 2026 15:54:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=cK+TUStU; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LBx1ei3j 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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From: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=6yQMNMqU/HEJBCXudA8w+syuHSn99EP/MV7YyObH1g4=; b=cK+TUStUE8qNqb0Rydom/uB52D mJjhNqStySEajCFsRJHjrGGQ0OSy9NrwSBoaMmcW8AkvEXCuRwThLNFSK9RxzY1h0WQ1FHCfjv5B3 Jwo7XIN5LBxUfs8rcJDLci3x6XYSjSVYzwCJi6n+XYvlv5DlSh2FnfJCJDz87a1x79ak2S4EKzZqa WHdIFf1p8e3eVBZ8o4vHOlMjkxTGb2N8bcTFZwUYMiMC0NqwuabYAeLUJ8jAyLhi0o6ZqehBMpbEC d+Rv44BO2XgfwNL5JI3aifc3eLtTIdarXo1ab++d00UPqTBnl9/zcwXuWKSmf/iOXUpbnJy5YkOmI 0RxbrELQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYQB9-00000008cyv-2k80; Tue, 01 Dec 2026 15:54:03 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYQB7-00000008cyU-3TfL for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2026 15:54:01 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 7D16241A6E; Tue, 1 Dec 2026 15:54:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F0411F000C1; Tue, 1 Dec 2026 15:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796140441; bh=6yQMNMqU/HEJBCXudA8w+syuHSn99EP/MV7YyObH1g4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=LBx1ei3jnyfc+Hx4u0xMoJoxCgnuRssXjcYPEJxZnxX96yxKBvhniHEuKNrDXDrI+ eM9nASvKcwzZH28ha/90gNFHNXuComRl/BlPyNo3Z5wMSboowf/oWYqd8CVHUO2AzK CYm0R1PPEQF1cew/aUoXvmObp0/fTv3eOBZxK9muscPkzIczSTvxIXNFm++xCqjA9o XndlupjUPK2skk2syOLGtDLeTvSg2oPZWgBwQ7wEmz1Tkr/kl+5f/980YTSjsJL+9K LXy9qE0PRlqvXIYW0WRoEWOt7YmwJRRwxtHaVAhaftfItBVb7SBVv0WWZ09uwvUR/e raWxPuZfAlG8g== Date: Tue, 1 Dec 2026 15:53:53 +0000 From: "Lorenzo Stoakes (ARM)" To: Leonardo Bras Cc: Marc Zyngier , Oliver Upton , Fuad Tabba , Joey Gouly , Steffen Eiden , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Mark Rutland , Christoffer Dall , Jintack Lim , Wei-Lin Chang , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, Usama Arif , stable@vger.kernel.org Subject: Re: [PATCH] KVM: arm64: Top up the mmu memcache on user fault for NV Message-ID: References: <20261126-fix-nv-cache-topup-v1-1-a22c936872fe@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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=-5.9 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 Tue, Dec 01, 2026 at 02:30:29PM +0000, Leonardo Bras wrote: > Sure, an even better idea, as it simplifies things :) Thanks :) > I suppose it won't negatively impact throughput, but it would be nice to > see some numbers. (it can be even faster :)) I think in general we're fairly safe in terms of any perf impact since the topup only tops up if you need to, and assuming further page table mapping that is going to happen at some point in any case. And in any case, the conditional is now wrong (it was hidden in the 40 magic number before), and I'm not sure it's possible to reasonably add another expression to the if(). I will try to get some numbers though regardless and see if there's anything impactful there! -- Cheers, Lorenzo