[PATCH v4 21/23] KVM: arm64: Add PKVM_HYP_REQ_SPLIT

Fuad Tabba fuad.tabba at linux.dev
Fri Nov 27 01:21:53 PST 2026


On Fri, 27 Nov 2026 at 09:19, 'Vincent Donnefort' via kernel-team
<kernel-team at android.com> wrote:
[...]
> > > Could you drop nr_pages from the split request? Patch 22, the only place
> > > that raises it, passes 1, so this loop runs once.
> >
> > Hum, it is just we have range everywhere now so it feels a bit weird of not
> > having one here. But then I agree this isn't a stable API.
> >
> > --
> > Vincent
>
> Looking at the existing kvm_pgtable_stage2_split() interface, I see it does take
> a size as a parameter and so does its caller. So I wonder if it isn't better to
> align everything and to keep that nr_pages argument.
>
> However, setting nr_page=1 is indeed a bit weird. I believe the hypervisor
> should just emit a PMD-aligned request. I can also drop the loop iterating over
> nr_pages.

That's what I thought, that said, I have no strong opinion on this. I
promise not to relitigate this on the respin, regardless of what you
pick :)

Cheers,
/fuad



More information about the linux-arm-kernel mailing list