]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Introduce hyp_alloc_private_va_range()
authorKalesh Singh <kaleshsingh@google.com>
Wed, 20 Apr 2022 21:42:52 +0000 (14:42 -0700)
committerMarc Zyngier <maz@kernel.org>
Thu, 28 Apr 2022 19:53:13 +0000 (20:53 +0100)
commitcb20caba974da112d7278eadeaf4c4cddf8edd62
tree09f5a0c034c25e17496a729881355cb78e1d7856
parent8dd3e26bbbc758feb75d55e38f0ba1ef6979f6d1
KVM: arm64: Introduce hyp_alloc_private_va_range()

hyp_alloc_private_va_range() can be used to reserve private VA ranges
in the nVHE hypervisor. Allocations are aligned based on the order of
the requested size.

This will be used to implement stack guard pages for KVM nVHE hypervisor
(nVHE Hyp mode / not pKVM), in a subsequent patch in the series.

Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220420214317.3303360-2-kaleshsingh@google.com
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/kvm/mmu.c