]> git.baikalelectronics.ru Git - kernel.git/commit
PTP: add kvm PTP driver
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 24 Jan 2017 17:09:42 +0000 (15:09 -0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Feb 2017 16:16:20 +0000 (17:16 +0100)
commit8da416a380ed9e6777de14cd1aaaeb3a36ff8e84
tree8dabe40530f4b7e5742cece09fff99c6b6c2ed82
parent3b32af20ddf0fabba85551f45d9f473c5acd2e95
PTP: add kvm PTP driver

Add a driver with gettime method returning hosts realtime clock.
This allows Chrony to synchronize host and guest clocks with
high precision (see results below).

chronyc> sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================

To configure Chronyd to use PHC refclock, add the
following line to its configuration file:

refclock PHC /dev/ptpX poll 3 dpoll -2 offset 0

Where /dev/ptpX is the kvmclock PTP clock.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
drivers/ptp/Kconfig
drivers/ptp/Makefile
drivers/ptp/ptp_kvm.c [new file with mode: 0644]