]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Extract VMA size resolution in user_mem_abort()
authorFuad Tabba <tabba@google.com>
Fri, 6 Mar 2026 14:02:20 +0000 (14:02 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 27 Mar 2026 10:20:34 +0000 (10:20 +0000)
commit66fcf492008db407e8d600ceaefd2c8a8070c5ae
tree5bb5220ec8106a8f989aa17adae7df6b555b2aa3
parentf338e77383789c0cae23ca3d48adcc5e9e137e3c
KVM: arm64: Extract VMA size resolution in user_mem_abort()

As part of an effort to refactor user_mem_abort() into smaller, more
focused helper functions, extract the logic responsible for determining
the VMA shift and page size into a new static helper,
kvm_s2_resolve_vma_size().

Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/mmu.c