]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: initialize kvmclock_offset
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Sep 2016 13:44:57 +0000 (15:44 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Sep 2016 07:26:13 +0000 (09:26 +0200)
commit49ef7a0f316868ba4ae9409fd2408acc6072fec2
tree4f064871db7e22b547d0916c9a61ee1599a28c73
parent11b6336bbb38ffaec8aab6ef8a530c5d0bd923ef
KVM: x86: initialize kvmclock_offset

Make the guest's kvmclock count up from zero, not from the host boot
time.  The guest cannot rely on that anyway because it changes on
migration, the numbers are easier on the eye and finally it matches the
desired semantics of the Hyper-V time reference counter.

Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c