]> git.baikalelectronics.ru Git - kernel.git/commit
hv_utils: return error if host timesysnc update is stale
authorVineeth Pillai <viremana@linux.microsoft.com>
Fri, 21 Aug 2020 15:25:23 +0000 (15:25 +0000)
committerWei Liu <wei.liu@kernel.org>
Mon, 24 Aug 2020 14:48:37 +0000 (14:48 +0000)
commit1ffe67e59f62bf398bbd34d8c706c291f83d4be9
tree2b831d9cc5f3428b0adf3951fbcb325b79b4f185
parented1d96690f0efae166284a86c04950fe3474704b
hv_utils: return error if host timesysnc update is stale

If for any reason, host timesync messages were not processed by
the guest, hv_ptp_gettime() returns a stale value and the
caller (clock_gettime, PTP ioctl etc) has no means to know this
now. Return an error so that the caller knows about this.

Signed-off-by: Vineeth Pillai <viremana@linux.microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20200821152523.99364-1-viremana@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/hv_util.c