kvm/x86: Update SynIC timers on guest entry only
authorAndrey Smetanin <[email protected]>
Mon, 28 Dec 2015 15:27:24 +0000 (18:27 +0300)
committerPaolo Bonzini <[email protected]>
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 <[email protected]>
Reviewed-by: Roman Kagan <[email protected]>
CC: Gleb Natapov <[email protected]>
CC: Paolo Bonzini <[email protected]>
CC: Roman Kagan <[email protected]>
CC: Denis V. Lunev <[email protected]>
CC: [email protected]
Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/kvm/hyperv.c
arch/x86/kvm/x86.c