]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: KVM: Gracefully handle hyp-stubs being restored from under our feet
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Apr 2017 18:37:58 +0000 (19:37 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:31 +0000 (07:49 -0700)
commit386627d825d82ed3f7261a0de71a7cc4144e3c4b
tree5a94a31477de5fbf3cf77e21196e448e2e42d6ff
parent4d5f9c14fb638cbe36795cb4b8a0b05ceba0a526
ARM: KVM: Gracefully handle hyp-stubs being restored from under our feet

Should kvm_reboot() be invoked while guest is running, an IPI
wil be issued, forcing the guest to exit and HYP being reset to
the stubs. We will then try to reenter the guest, only to get
an error (HVC_STUB_ERR).

This patch allows this case to be gracefully handled by exiting
the run loop.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
arch/arm/include/asm/kvm_asm.h
arch/arm/kvm/handle_exit.c