summaryrefslogtreecommitdiff
path: root/arch/arm/kvm/arm.c
diff options
context:
space:
mode:
authorEric Auger <eric.auger@linaro.org>2015-09-26 00:41:15 +0300
committerChristoffer Dall <christoffer.dall@linaro.org>2015-10-23 00:01:46 +0300
commit4f5f1dc03606e18986b874f899cf86b0a3e4f2a5 (patch)
tree54e730725ed4a4f1b7f7b13a4e9b7193baa791c1 /arch/arm/kvm/arm.c
parent3781528e3045e7c9cc7c4846e0f675b1f353655f (diff)
downloadlinux-4f5f1dc03606e18986b874f899cf86b0a3e4f2a5.tar.xz
KVM: arm/arm64: check power_off in kvm_arch_vcpu_runnable
kvm_arch_vcpu_runnable now also checks whether the power_off flag is set. Signed-off-by: Eric Auger <eric.auger@linaro.org> Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'arch/arm/kvm/arm.c')
-rw-r--r--arch/arm/kvm/arm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c
index 9d2fb4772d8c..d04deeb1d4e0 100644
--- a/arch/arm/kvm/arm.c
+++ b/arch/arm/kvm/arm.c
@@ -352,7 +352,8 @@ int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu,
*/
int kvm_arch_vcpu_runnable(struct kvm_vcpu *v)
{
- return !!v->arch.irq_lines || kvm_vgic_vcpu_pending_irq(v);
+ return ((!!v->arch.irq_lines || kvm_vgic_vcpu_pending_irq(v))
+ && !v->arch.power_off);
}
/* Just ensure a guest exit from a particular CPU */