]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Fix timesync state to be uncalibrated when adjustment is large (>60ms).
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:31 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:31 +0000 (11:23 -0700)
commit34ff407a2ff5cbc0095fb95b30b1ba4e66f0f0c7
tree5a3a74ec6f68ef886754382049fe80271bae04ca
parent488aea219340e6821b25fb4240791fa9e7903023
Fix timesync state to be uncalibrated when adjustment is large (>60ms).

VMtools has timesync plugin to adjust guest time to match host time. Timesync
relies on a state machine (Uncalibrated, calibrating and PLL states) to
adjust the amount of guest time to match host time. If the guest and host
time differ by more than 60ms, state machine should reset to uncalibrated
state. There is a bug currently that would leave the state in PLL mode even
if the guest and host times differ by more than 60ms since absolute value of
adjustment is not considered. This causes the time sync to happen slower than
expected.
open-vm-tools/lib/include/vmware/tools/utils.h
open-vm-tools/services/plugins/timeSync/timeSync.c