kvm/x86: Hyper-V timers fix incorrect logical operation
authorAndrey Smetanin <asmetanin@virtuozzo.com>
Mon, 28 Dec 2015 15:27:18 +0000 (18:27 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 Jan 2016 18:04:39 +0000 (19:04 +0100)
Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
CC: Gleb Natapov <gleb@kernel.org>
CC: Paolo Bonzini <pbonzini@redhat.com>
CC: Roman Kagan <rkagan@virtuozzo.com>
CC: Denis V. Lunev <den@openvz.org>
CC: qemu-devel@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c

index f34f666..e4ef13a 100644 (file)
@@ -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);
 }