]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Add guard pages for pKVM (protected nVHE) hypervisor stack
authorKalesh Singh <kaleshsingh@google.com>
Wed, 20 Apr 2022 21:42:55 +0000 (14:42 -0700)
committerMarc Zyngier <maz@kernel.org>
Thu, 28 Apr 2022 19:53:13 +0000 (20:53 +0100)
commit38e0eca692efeae76b696e6785d8127a58a01b0c
treeff35aed019fda798b598792bd0f4c8b496f174a1
parentaab8bc5e9515ad980d14dd00b2c38a37928e6db4
KVM: arm64: Add guard pages for pKVM (protected nVHE) hypervisor stack

Map the stack pages in the flexible private VA range and allocate
guard pages below the stack as unbacked VA space. The stack is aligned
so that any valid stack address has PAGE_SHIFT bit as 1 - this is used
for overflow detection (implemented 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-5-kaleshsingh@google.com
arch/arm64/kvm/hyp/nvhe/setup.c