kvm/x86: Update SynIC timers on guest entry only
authorAndrey Smetanin <asmetanin@virtuozzo.com>
Mon, 28 Dec 2015 15:27:24 +0000 (18:27 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 Jan 2016 18:04:42 +0000 (19:04 +0100)
commitf3b138c5d89a1f74a2b46adaa1067aea9a7e3cbb
tree438ad25bcd5642ed1e2e55091824470a3ecac70b
parent7be58a6488a9d36886d9423a1ed54fe104c7b182
kvm/x86: Update SynIC timers on guest entry only

Consolidate updating the Hyper-V SynIC timers in a
single place: on guest entry in processing KVM_REQ_HV_STIMER
request.  This simplifies the overall logic, and makes sure
the most current state of msrs and guest clock is used for
arming the timers (to achieve that, KVM_REQ_HV_STIMER
has to be processed after KVM_REQ_CLOCK_UPDATE).

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
arch/x86/kvm/x86.c