Re: [PATCH] KVM: arm64: Top up the mmu memcache on user fault for NV

From: Leonardo Bras

Date: Tue Dec 01 2026 - 11:02:21 EST


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