diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2017-01-24 15:09:42 -0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-02-08 17:16:20 +0100 |
commit | a0e136d436ded817c0aade72efdefa56a00b4e5e (patch) | |
tree | 8dabe40530f4b7e5742cece09fff99c6b6c2ed82 /drivers/ptp/Kconfig | |
parent | f4066c2bc4d0de4e5dcbff21dae41e89fe8f38c0 (diff) | |
download | linux-a0e136d436ded817c0aade72efdefa56a00b4e5e.tar.bz2 |
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>
Diffstat (limited to 'drivers/ptp/Kconfig')
-rw-r--r-- | drivers/ptp/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig index bdce33291161..384f661a6496 100644 --- a/drivers/ptp/Kconfig +++ b/drivers/ptp/Kconfig @@ -90,4 +90,16 @@ config PTP_1588_CLOCK_PCH To compile this driver as a module, choose M here: the module will be called ptp_pch. +config PTP_1588_CLOCK_KVM + tristate "KVM virtual PTP clock" + depends on PTP_1588_CLOCK + depends on KVM_GUEST && X86 + default y + help + This driver adds support for using kvm infrastructure as a PTP + clock. This clock is only useful if you are using KVM guests. + + To compile this driver as a module, choose M here: the module + will be called ptp_kvm. + endmenu |