linux/arch/arm/kvm/hyp
James Morse d2e1936884 KVM: arm: Restore banked registers and physical timer access on hyp_panic()
When KVM panics, it hurridly restores the host context and parachutes
into the host's panic() code. This looks like it was copied from arm64,
the 32bit KVM panic code needs to restore the host's banked registers
too.

At some point panic() touches the physical timer/counter, this will
trap back to HYP. If we're lucky, we panic again.

Add a __timer_save_state() call to KVMs hyp_panic() path, this saves the
guest registers and disables the traps for the host.

Fixes: c36b6db5f3 ("ARM: KVM: Add panic handling code")
Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
2017-05-16 09:54:24 +02:00
..
banked-sr.c ARM: KVM: Move kvm/hyp/hyp.h to include/asm/kvm_hyp.h 2016-02-29 18:34:18 +00:00
cp15-sr.c ARM: KVM: Move kvm/hyp/hyp.h to include/asm/kvm_hyp.h 2016-02-29 18:34:18 +00:00
entry.S arm: KVM: Handle async aborts delivered while at HYP 2016-09-08 12:53:00 +02:00
hyp-entry.S ARM: KVM: Fix idmap stub entry when running Thumb-2 code 2017-04-20 20:17:57 +02:00
Makefile ARM: KVM: Support vgic-v3 2016-09-22 13:22:21 +02:00
s2-setup.c ARM: KVM: Move kvm/hyp/hyp.h to include/asm/kvm_hyp.h 2016-02-29 18:34:18 +00:00
switch.c KVM: arm: Restore banked registers and physical timer access on hyp_panic() 2017-05-16 09:54:24 +02:00
tlb.c arm/arm64: KVM: Perform local TLB invalidation when multiplexing vcpus on a single CPU 2016-11-04 17:56:28 +00:00
vfp.S ARM: KVM: Add VFP save/restore 2016-02-29 18:34:13 +00:00