KVM: arm64: On stack overflow switch to hyp overflow_stack
authorKalesh Singh <kaleshsingh@google.com>
Tue, 26 Jul 2022 07:37:40 +0000 (00:37 -0700)
committerMarc Zyngier <maz@kernel.org>
Tue, 26 Jul 2022 09:49:05 +0000 (10:49 +0100)
commit548ec3336f323db56260b312c232ab37285f0284
tree5df07e5749b888bc368e4b078c5801f1260c5188
parent051ece6758cc10c2a6f1700ffe86d23fbb0b2553
KVM: arm64: On stack overflow switch to hyp overflow_stack

On hyp stack overflow switch to 16-byte aligned secondary stack.
This provides us stack space to better handle overflows; and is
used in a subsequent patch to dump the hypervisor stacktrace.

Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220726073750.3219117-8-kaleshsingh@google.com
arch/arm64/kvm/hyp/nvhe/Makefile
arch/arm64/kvm/hyp/nvhe/host.S
arch/arm64/kvm/hyp/nvhe/stacktrace.c [new file with mode: 0644]