From 1ac1b65ac199205724a8077d37ba7e64a1b7e77c Mon Sep 17 00:00:00 2001 From: Andrey Smetanin Date: Mon, 28 Dec 2015 18:27:18 +0300 Subject: [PATCH] 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 --- arch/x86/kvm/hyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c index f34f666778b2..e4ef13a37d4c 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); } -- 2.20.1