From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796140441; b=aT1v0X+CrCDjoMb3KPlo8uY697U1HxjgHl7Gl3WVSFP8PkwuHb+357bQfuYLznvtYDUt r1x2KXU806DRuPUobkVFlMnicb9EJMQEA+uvTJr7J5QQIdbdOAojXvJZDGNArVSKRyPEQ po22Vz8RKeoG1I/VG+usKO2JKMclHFTb21yzpFxCL5clZzm3kCKTuje8Vlcjts6EQ9c8q 5ZdXPmz9Rr3X1cUzCfP3AD11g4S/oizKx0Q5SQpc1CNigqZvGZ3LhEzgH3ipUlqFgJS// JBg0s1fD3blQRfimgfxSZdm/YZGZ/jDRDdVYVXdLFlJNY14CzbnZfc3JXVFXO2uQdLg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796140441; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=6yQMNMqU/HEJBCXudA8w+syuHSn99EP/MV7YyObH1g4=; b=zJqZXr+/eZFKVUAL8PjcuX2D3morsLlCpHIglPHKEvYgzUvR97dJSsvIUwb7smc9daRh VjraJ2/6KRlVwiWjPMKWEvln3VHu0zez/pWM+BwnxrYLYjvmB3NJtybs9IT8HcFOFC6Cz ED7N3mUHiMHCCNcOTRtvCMfCPx6XJAF1/yhqQofVCFacw4TVZ+5tpgdDlJMTfN92otBU3 DGYz7cgMSd/13Zf1zarC1Z0u7F1fS2L5Py4WSAlv7UndNUiQ1tH5sh1yVeKNfHezP52wM q4il4+8xnMBhc83R3FHW9/Y+6kQKqC4mzVQfM4ZfGnWUJv6Na+wGMwIOiBcfC/OTqIQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LBx1ei3j; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE7B2606A32A; Tue, 1 Dec 2026 15:54:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LBx1ei3j 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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