linux/drivers/hv
Vitaly Kuznetsov 1d10602d30 hv_utils: fix TimeSync work on pre-TimeSync-v4 hosts
It was found that ICTIMESYNCFLAG_SYNC packets are handled incorrectly
on WS2012R2, e.g. after the guest is paused and resumed its time is set
to something different from host's time. The problem is that we call
adj_guesttime() with reftime=0 for these old hosts and we don't account
for that in 'if (adj_flags & ICTIMESYNCFLAG_SYNC)' branch and
hv_set_host_time().

While we could've solved this by adding a check like
'if (ts_srv_version > TS_VERSION_3)' to hv_set_host_time() I prefer
to do some refactoring. We don't need to have two separate containers
for host samples, struct host_ts which we use for PTP is enough.

Throw away 'struct adj_time_work' and create hv_get_adj_host_time()
accessor to host_ts to avoid code duplication.

Fixes: 3716a49a81 ("hv_utils: implement Hyper-V PTP source")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-25 15:42:42 +02:00
..
channel_mgmt.c Drivers: hv: vmbus: Fix rescind handling 2017-05-18 16:55:28 +02:00
channel.c Drivers: hv: vmbus: Fix rescind handling 2017-05-18 16:55:28 +02:00
connection.c Drivers: hv: vmbus: Fix rescind handling 2017-05-18 16:55:28 +02:00
hv_balloon.c vmbus: remove useless return's 2017-03-17 15:10:48 +09:00
hv_fcopy.c Merge 4.11-rc4 into char-misc-next 2017-03-27 09:13:04 +02:00
hv_kvp.c HV: properly delay KVP packets when negotiation is in progress 2017-05-18 16:55:28 +02:00
hv_snapshot.c Merge 4.11-rc4 into char-misc-next 2017-03-27 09:13:04 +02:00
hv_util.c hv_utils: fix TimeSync work on pre-TimeSync-v4 hosts 2017-05-25 15:42:42 +02:00
hv_utils_transport.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-03-16 16:42:00 +09:00
hv_utils_transport.h Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-03-16 16:42:00 +09:00
hv.c Drivers: hv: vmbus: Get the current time from the current clocksource 2017-05-25 15:42:42 +02:00
hyperv_vmbus.h Drivers: hv: vmbus: Fix rescind handling 2017-05-18 16:55:28 +02:00
Kconfig x86/hyperv: Implement hv_get_tsc_page() 2017-03-11 14:47:28 +01:00
Makefile Drivers: hv: util: introduce hv_utils_transport abstraction 2015-05-24 12:17:41 -07:00
ring_buffer.c char/misc patches for 4.12-rc1 2017-05-04 19:15:35 -07:00
vmbus_drv.c Drivers: hv: vmbus: Fix rescind handling 2017-05-18 16:55:28 +02:00