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)
commit90b125f4cd2697f949f5877df723a0b710693dd0
tree2b831d9cc5f3428b0adf3951fbcb325b79b4f185
parentb9d8cf2eb3ceecdee3434b87763492aee9e28845
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