]> git.karo-electronics.de Git - karo-tx-linux.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)
commit101d3da09c953b08c814cd9a0b8605623d640ba0
tree3a2ef254199675f339f4004c4d15b222851f3264
parent4f5f1dc03606e18986b874f899cf86b0a3e4f2a5
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