]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 305111
authorsephe <sephe@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 13 Oct 2016 06:49:00 +0000 (06:49 +0000)
committersephe <sephe@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 13 Oct 2016 06:49:00 +0000 (06:49 +0000)
commit235767b534549f2ad14dba4d55849fc9608ec2cb
treea4a89cd8d6a81ce636e81965553cfaa93caf88b8
parent01b04af8fdb7020f8bcf6ae7374b135cc5a3c994
MFC 305111

    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
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D7707

git-svn-id: svn://svn.freebsd.org/base/stable/10@307187 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/hyperv/utilities/hv_timesync.c