]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: check power_off in critical section before VCPU run
authorEric Auger <eric.auger@linaro.org>
Fri, 25 Sep 2015 21:41:16 +0000 (23:41 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 22 Oct 2015 21:01:46 +0000 (23:01 +0200)
commitdec8a88661eefa74d9677a7d7ab25c691b6ae4de
tree3a2ef254199675f339f4004c4d15b222851f3264
parent4361276390af8c4abc60e4cc4556068afd095c24
KVM: arm/arm64: check power_off in critical section before VCPU run

In case a vcpu off PSCI call is called just after we executed the
vcpu_sleep check, we can enter the guest although power_off
is set. Let's check the power_off state in the critical section,
just before entering the guest.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Reported-by: Christoffer Dall <christoffer.dall@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/arm.c