aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-wbt.c
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2017-04-25 18:02:44 +0100
committerChristoffer Dall <cdall@linaro.org>2017-05-16 09:54:24 +0200
commitd2e19368848ce6065daa785efca26faed54732b6 (patch)
tree01bf04b516248c7632290adf8cc53b6e351a6f60 /block/blk-wbt.c
parentLinux 4.12-rc1 (diff)
downloadlinux-dev-d2e19368848ce6065daa785efca26faed54732b6.tar.xz
linux-dev-d2e19368848ce6065daa785efca26faed54732b6.zip
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: c36b6db5f3e4 ("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>
Diffstat (limited to 'block/blk-wbt.c')
0 files changed, 0 insertions, 0 deletions