From: Andrey Smetanin Date: Mon, 28 Dec 2015 15:27:18 +0000 (+0300) Subject: kvm/x86: Hyper-V timers fix incorrect logical operation X-Git-Tag: v4.14-rc1~3917^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ac1b65ac199205724a8077d37ba7e64a1b7e77c;p=platform%2Fkernel%2Flinux-rpi.git kvm/x86: Hyper-V timers fix incorrect logical operation Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan CC: Gleb Natapov CC: Paolo Bonzini CC: Roman Kagan CC: Denis V. Lunev CC: qemu-devel@nongnu.org Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c index f34f666..e4ef13a 100644 --- a/arch/x86/kvm/hyperv.c +++ b/arch/x86/kvm/hyperv.c @@ -583,7 +583,7 @@ static void stimer_expiration(struct kvm_vcpu_hv_stimer *stimer) { stimer_send_msg(stimer); if (!(stimer->config & HV_STIMER_PERIODIC)) - stimer->config |= ~HV_STIMER_ENABLE; + stimer->config &= ~HV_STIMER_ENABLE; else stimer_restart(stimer); }