diff options
author | Andrey Smetanin <asmetanin@virtuozzo.com> | 2015-12-28 10:27:18 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-01-08 13:04:39 -0500 |
commit | 1ac1b65ac199205724a8077d37ba7e64a1b7e77c (patch) | |
tree | e9a0ed01fc79ef73d5644d41edc609c5afe01502 | |
parent | 2860c4b1678646c99f5f1d77d026cd12ffd8a3a9 (diff) |
kvm/x86: Hyper-V timers fix incorrect logical operation
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>
-rw-r--r-- | arch/x86/kvm/hyperv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
583 | { | 583 | { |
584 | stimer_send_msg(stimer); | 584 | stimer_send_msg(stimer); |
585 | if (!(stimer->config & HV_STIMER_PERIODIC)) | 585 | if (!(stimer->config & HV_STIMER_PERIODIC)) |
586 | stimer->config |= ~HV_STIMER_ENABLE; | 586 | stimer->config &= ~HV_STIMER_ENABLE; |
587 | else | 587 | else |
588 | stimer_restart(stimer); | 588 | stimer_restart(stimer); |
589 | } | 589 | } |