]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hyperv/timesync: Rework time adjustment policy
authorsephe <sephe@FreeBSD.org>
Wed, 31 Aug 2016 06:00:20 +0000 (06:00 +0000)
committersephe <sephe@FreeBSD.org>
Wed, 31 Aug 2016 06:00:20 +0000 (06:00 +0000)
commit6949bf9f3f3e87dc838cf3066e0e328accf031bf
tree4c8ef30a550f3eaa0087f6fcb5fc33b295a19ae9
parent5c3601c6451b19fdf07588ce4b100833e13e0ba4
hyperv/timesync: Rework time adjustment policy

- By default, adjust time upon SYNC request.  It can be disabled
  through hw.hvtimesync.ignore_sync_req.  SYNC request will be
  sent by hypervisor the host is resumed, rebooted, etc.
- By default, adjust time upon SAMPLE request, if there is 100ms
  difference between VM time and hypervisor time.  This can be
  disabled through hw.hvtimesync.sample_drift.

And nuke the unnecessary task, since channel callback is running
in a Hyper-V taskqueue nowadays.

Submitted by: YanZhe Chen <t-yachen microsoft com>
Discussed with: Dexuan Cui <decui microsoft com>, Hongjiang Zhang <honzhan microsoft com>, sephe
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7707
sys/dev/hyperv/utilities/hv_timesync.c