]> 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)
commit33fa911fa0adce1ded3a58ce34f82352a664eb0a
tree2b831d9cc5f3428b0adf3951fbcb325b79b4f185
parentf2730278768e59e51f75addfde8813081a77c7a0
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