Re: [patch 4/5] PTP: add PTP_SYS_OFFSET emulation via cross timestamps infrastructure

From: Miroslav Lichvar
Date: Fri Jan 20 2017 - 09:33:00 EST


On Fri, Jan 20, 2017 at 03:23:08PM +0100, Paolo Bonzini wrote:
> On 20/01/2017 15:02, Radim Krcmar wrote:
> > Another solution would be to do just one one read and set it to all
> > saples -- the difference between t[i] and t[i+2] would be 0. We are
> > quite sure the just one read is enough, this hack could be even better.
>
> I'd be afraid of messing up chrony's stats...

This should be ok. For the application it just looks as if the CPU and
everything else in the path of the measurements was infinitely fast. :)

--
Miroslav Lichvar