summaryrefslogtreecommitdiffstats
path: root/include/linux/hyperv.h
diff options
context:
space:
mode:
authorAlex Ng2016-09-08 14:24:14 +0200
committerGreg Kroah-Hartman2016-09-08 13:53:07 +0200
commit8e1d260738ca89bc7c87444f95f04a026d12b496 (patch)
tree311bc7a37a429d4ad9d4d32a259ed2f6ba40fa74 /include/linux/hyperv.h
parentDrivers: hv: utils: Use TimeSync samples to adjust the clock after boot. (diff)
downloadkernel-qcow2-linux-8e1d260738ca89bc7c87444f95f04a026d12b496.tar.gz
kernel-qcow2-linux-8e1d260738ca89bc7c87444f95f04a026d12b496.tar.xz
kernel-qcow2-linux-8e1d260738ca89bc7c87444f95f04a026d12b496.zip
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>
Diffstat (limited to 'include/linux/hyperv.h')
-rw-r--r--include/linux/hyperv.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index 430619a92d3b..7d7cbff33bda 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -1423,6 +1423,15 @@ struct ictimesync_data {
u8 flags;
} __packed;
+struct ictimesync_ref_data {
+ u64 parenttime;
+ u64 vmreferencetime;
+ u8 flags;
+ char leapflags;
+ char stratum;
+ u8 reserved[3];
+} __packed;
+
struct hyperv_service_callback {
u8 msg_type;
char *log_msg;