Re: [PATCH] kvm PTP: drop TSC correction from ptp_kvm_gettime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 08/02/2017 14:31, Marcelo Tosatti wrote:
> The TSC correction in ptp_kvm_gettime was an attempt to handle
> high load situations. Unfortunately it is incorrect because 
> userspace expects PTP clock reads to happen in the middle point
> between realtime clock reads:
> 
> 
> 	|* | | | | | | | | | | | |* | | | | | | | | | | | |* |
> 	rt-read-1	ptp-clock-read-1	rt-read-2
> 
> The TSC correction causes the PTP clock reads to read the clock at:
> 
> 	|* | | | | | | | | | | | | | | | | |* | | | | | | |* |
> 	rt-read-1	ptp-clock-read-1	rt-read-2
> 
> So drop the TSC offset correction, increasing precision of synchronization
> of an idle guest to <= 10ns.
> 
> Signed-off-by: Marcelo Tosatti <mtosatti@xxxxxxxxxx>

Applied, thanks.

Paolo



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux