[PATCH v5 25/25] KVM: arm64: Stage-2 huge mappings for protected VMs
Fuad Tabba
fuad.tabba at linux.dev
Mon Nov 30 13:01:00 PST 2026
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/
More information about the linux-arm-kernel
mailing list