[PATCH 3/4] hv_util: use do_adjtimex() to update system time

Vitaly Kuznetsov vkuznets at redhat.com
Mon Jan 9 17:40:15 UTC 2017


Stephen Hemminger <stephen at networkplumber.org> writes:

> An alternative would be for hyper-v util to provide a clocksource device and
> let NTP manage the adjustment. The advantage of this would be HV util not fighting
> with NTP, and using standard API's. The downside would be the complexity of configuring
> NTP, and difficulty of writing a clock source pseudo device.

Yes, I see this option. But as I wrote to John I'm afraid we'll have to
come up with a custom interface from hv_util to userspace which no NTP
server will want to support (because, first of all, it's not about
'network time' any more). We can write our own daemon which will read
from this interface and do adjtimex but in this case I don't see much
value in this data traveling from kernel to userspace and back...

-- 
  Vitaly


More information about the devel mailing list