KVM: x86: update masterclock when kvmclock_offset is calculated (v2)
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 28 Aug 2013 02:55:29 +0000 (23:55 -0300)
committerGleb Natapov <gleb@redhat.com>
Wed, 28 Aug 2013 14:36:11 +0000 (17:36 +0300)
commit2e762ff79fd0793cfa71d3913e2eb664b7b11031
tree0c8dd496830d9cf7e16e17b0e0a2cb7454175859
parent0912c9771e9902f752e890e93af495cc06a786ac
KVM: x86: update masterclock when kvmclock_offset is calculated (v2)

The offset to add to the hosts monotonic time, kvmclock_offset, is
calculated against the monotonic time at KVM_SET_CLOCK ioctl time.

Request a master clock update at this time, to reduce a potentially
unbounded difference between the values of the masterclock and
the clock value used to calculate kvmclock_offset.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/x86.c