Drivers: hv: utils: Support TimeSync version 4.0 protocol samples.
authorAlex Ng <alexng@messages.microsoft.com>
Thu, 8 Sep 2016 12:24:14 +0000 (05:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Sep 2016 11:53:07 +0000 (13:53 +0200)
commit8e1d260738ca89bc7c87444f95f04a026d12b496
tree311bc7a37a429d4ad9d4d32a259ed2f6ba40fa74
parent2e338f7e034f12066c78999deff8894c337ae23b
Drivers: hv: utils: Support TimeSync version 4.0 protocol samples.

This enables support for more accurate TimeSync v4 samples when hosted
under Windows Server 2016 and newer hosts.

The new time samples include a "vmreferencetime" field that represents
the guest's TSC value when the host generated its time sample. This value
lets the guest calculate the latency in receiving the time sample. The
latency is added to the sample host time prior to updating the clock.

Signed-off-by: Alex Ng <alexng@messages.microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_util.c
include/linux/hyperv.h