mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 23:06:42 +07:00
d2e1936884
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:
|
||
---|---|---|
.. | ||
banked-sr.c | ||
cp15-sr.c | ||
entry.S | ||
hyp-entry.S | ||
Makefile | ||
s2-setup.c | ||
switch.c | ||
tlb.c | ||
vfp.S |