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 17A8C606A31A for ; Tue, 1 Dec 2026 16:02:37 +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=glWx6E5z; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=bpKhh3nS 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-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=iTbtF7KLTIao5yl/vGCaKQT2LL0t2rTSXud3CdYgX0M=; b=glWx6E5z1iSOVv QZD7gzq1WTCoAU4zkqI6gBsCsrlAqIioyGAD6/JDEIiG9scPJaKjGs3s6ltg3+qxkL0Zs9n6QXpKt La89Y66dzAi8QMbjbN3p53+98KVXumNG5BqAPzqnr7PYJdWRwU8SKKQ6rsRLXG35xtlVhLYUnN5gp FSZTXHLaQ/Enzw6gd++VoU5iAxYvGOgyydutanUcKuk5tSl/XL3z7fY/CC7xgGFErzFKKaoZn/dul 3xdZ9Nj8a01JzzNjPYnmFIWUyHXCAONPdDgoMnmOtsfC9QH2VuksYKZD3VI1PIn6fra4q9yq1yDbq 3tolZW6taHIdB2nHAKsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYQJB-00000008e6k-2KmE; Tue, 01 Dec 2026 16:02:21 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYQJ8-00000008e5a-3Wxk for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2026 16:02:21 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8302C152B; Tue, 1 Dec 2026 08:02:09 -0800 (PST) Received: from LeoBrasDK.cambridge.arm.com (LeoBrasDK.cambridge.arm.com [10.2.212.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C5AD03F7D8; Tue, 1 Dec 2026 08:02:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796140932; bh=09tyU7qE/4te+b/nCD9jox49VqxOBj2ZJBa8vMX4eWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bpKhh3nS0tlINSnK6pT5TC66JLpJCKva2wSUn8WHaBfT1SIiL19EoJRA+qSb/7FNy Xwow+G0G49sMeQB05kerQkBJUp57jdrK0WRh0+cpgY5i+Mj6nvXLdr7D8TJ987VaQH GeZB4ZG9Q06ZL76HeGBx1ZdA00kwlrBe3WmfEDRM= From: Leonardo Bras To: "Lorenzo Stoakes (ARM)" Cc: Leonardo Bras , 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 Date: Tue, 1 Dec 2026 16:02:07 +0000 Message-ID: X-Mailer: git-send-email 2.56.1 In-Reply-To: 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 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_080219_698803_DB93FE57 X-CRM114-Status: GOOD ( 17.01 ) X-Spam-Score: -4.4 (----) 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=-8.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,USER_AGENT_GIT autolearn=ham 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 03:53:53PM +0000, Lorenzo Stoakes (ARM) wrote: > 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! Since it will be testing for less stuff, I suppose it will be actually faster :P Thanks! Leo