Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Leonardo Bras <leo.bras@arm.com>
To: "Lorenzo Stoakes (ARM)" <ljs@kernel.org>
Cc: Leonardo Bras <leo.bras@arm.com>, Marc Zyngier <maz@kernel.org>,
	Oliver Upton <oupton@kernel.org>,
	Fuad Tabba <fuad.tabba@linux.dev>,
	Joey Gouly <joey.gouly@arm.com>,
	Steffen Eiden <seiden@linux.ibm.com>,
	Suzuki K Poulose <suzuki.poulose@arm.com>,
	Zenghui Yu <yuzenghui@huawei.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Christoffer Dall <christoffer.dall@linaro.org>,
	Jintack Lim <jintack.lim@linaro.org>,
	Wei-Lin Chang <weilin.chang@arm.com>,
	linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev,
	linux-kernel@vger.kernel.org, Usama Arif <usama.arif@linux.dev>,
	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	[thread overview]
Message-ID: <aw7vT-B0rd2Uslu2@LeoBrasDK> (raw)
In-Reply-To: <aw7rJOsiwosVoKse@gremlin>

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


  reply	other threads:[~2026-12-01 16:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 17:28 [PATCH] KVM: arm64: Top up the mmu memcache on user fault for NV Lorenzo Stoakes (ARM)
2026-11-27 11:58 ` Leonardo Bras
2026-11-27 13:09   ` Lorenzo Stoakes (ARM)
2026-11-30 12:03     ` Leonardo Bras
2026-11-30 16:52       ` Lorenzo Stoakes (ARM)
2026-12-01 14:30         ` Leonardo Bras
2026-12-01 15:53           ` Lorenzo Stoakes (ARM)
2026-12-01 16:02             ` Leonardo Bras [this message]
2026-11-27 15:22 ` Usama Arif
2026-11-27 17:26   ` Lorenzo Stoakes (ARM)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aw7vT-B0rd2Uslu2@LeoBrasDK \
    --to=leo.bras@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=christoffer.dall@linaro.org \
    --cc=fuad.tabba@linux.dev \
    --cc=jintack.lim@linaro.org \
    --cc=joey.gouly@arm.com \
    --cc=kvmarm@lists.linux.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ljs@kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=maz@kernel.org \
    --cc=oupton@kernel.org \
    --cc=seiden@linux.ibm.com \
    --cc=stable@vger.kernel.org \
    --cc=suzuki.poulose@arm.com \
    --cc=usama.arif@linux.dev \
    --cc=weilin.chang@arm.com \
    --cc=will@kernel.org \
    --cc=yuzenghui@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox