]> git.baikalelectronics.ru Git - kernel.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)
commitf3a83a84f9a9daad51314311d6af0976db967637
tree5a94a31477de5fbf3cf77e21196e448e2e42d6ff
parent94675d239e2564981bf82e0b022982f843071ab7
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