From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796140934; b=hLFEeu32oevnAEcL5m7VEwzYDOOcPoespVCf5sBm4xfLtH3+fP1bqmIprTWDthc90G80 bnOqqObZO1b85+O7jUeAnW1LKKiR923Oh6CHj1lkW0Y79WMH2faFOjFn2rlmGBrI8CdhQ Thm0qhTNXURa32kx2e8xaj8MDNTiRwWJBAAIDaMdnZZ11cwqTGY9077ejoQeYGhTBnWnM 1eLLIWAgUEyKQ1/6sEdkw2L20E22/0G2gVnMNvBzw0Nsqxjn+gFbrBT1zFJ0D66lk4qq0 CdEJU/Uc0/hJpfR0zOPirThG2sscGI0sPKHcdvM9yKLO69COku7ojGCGRGQoe62yzzg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796140934; h=DMARC-Filter:Received:Received:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Type:Content-Disposition:Content-Transfer-Encoding; bh=iTbtF7KLTIao5yl/vGCaKQT2LL0t2rTSXud3CdYgX0M=; b=IfDfyu+imsn6RqNnbEmC7La/zbJd+jaNSwHkqIuEBca82U9nvnnwno67s1tiOpOuWUsv MxX2XsqDZ79QeDyGz1AKm/trh5DRjgOdsp82ZaQALfgKmq+smgrPsOnDIjqzhpGfmbCRP jT6A6YgGStUYWGNOIkovffxRGkKeJk2L2px+zzJ0e8UpXU/XJJjgWJPBRihEPLeQjhYm8 5q4NhCkaCGK6Llt/gOVcOGhAMobrSbH3QNWDIf0PzI3hz6zT43MyobzAXEd1T9V2Y+aCE i9gBT45KAYQsX5GjR8TiY6a4wEuDNq+q7ET42XTAIcV+nc4HhJwQsmuHhE5KZCtCS7g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=bpKhh3nS; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DFAD606A329; Tue, 1 Dec 2026 16:02:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8DFAD606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=bpKhh3nS 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-Mailing-List: stable@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 Content-Transfer-Encoding: 8bit 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