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>
This commit is contained in:
parent
2860c4b167
commit
1ac1b65ac1
@ -583,7 +583,7 @@ static void stimer_expiration(struct kvm_vcpu_hv_stimer *stimer)
|
|||||||
{
|
{
|
||||||
stimer_send_msg(stimer);
|
stimer_send_msg(stimer);
|
||||||
if (!(stimer->config & HV_STIMER_PERIODIC))
|
if (!(stimer->config & HV_STIMER_PERIODIC))
|
||||||
stimer->config |= ~HV_STIMER_ENABLE;
|
stimer->config &= ~HV_STIMER_ENABLE;
|
||||||
else
|
else
|
||||||
stimer_restart(stimer);
|
stimer_restart(stimer);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user