[PATCH v5 25/25] KVM: arm64: Stage-2 huge mappings for protected VMs
Vincent Donnefort
vdonnefort at google.com
Wed Dec 2 02:26:57 PST 2026
On Mon, Nov 30, 2026 at 09:01:00PM +0000, Fuad Tabba wrote:
> Hi Vincent,
>
> On Mon, 30 Nov 2026 15:57:09 +0000, Vincent Donnefort
> <vdonnefort at google.com> wrote:
> [...]
> > diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c
> [...]
> > +static int protected_pkvm_mem_abort(const struct kvm_s2_fault_desc *s2fd)
> > +{
> [...]
> > + size = s2vi.vma_pagesize;
> > +
> > + ret = account_locked_vm(mm, size / PAGE_SIZE, true);
> > + if (ret)
> > + goto unpin;
>
> I'm not sure about Sashiko's report on the locked_vm accounting here
> [1], worth fixing?
>
> Cheers,
> /fuad
>
> [1] https://lore.kernel.org/all/sashiko-outbox-241597@kernel.org/
Yeah, I am not sure yet. See my reply to Sashiko's email.
--
Vincent
More information about the linux-arm-kernel
mailing list