arm64: KVM: VHE: Add alternative panic handling
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 17 Nov 2015 14:07:45 +0000 (14:07 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:18 +0000 (18:34 +0000)
commit253dcbd39adb00890f3c350230ae310fcfeeb760
tree58863536a7c23df4df654d5fcf11d14656dec8a4
parent77cb2d91333312d7426055d4369f3821e5e8bda0
arm64: KVM: VHE: Add alternative panic handling

As the kernel fully runs in HYP when VHE is enabled, we can
directly branch to the kernel's panic() implementation, and
not perform an exception return.

Add the alternative code to deal with this.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp/switch.c