]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: add VMware virtual PTP clock driver
authorVivek Thampi <vithampi@vmware.com>
Fri, 28 Feb 2020 05:32:46 +0000 (05:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Mar 2020 01:25:07 +0000 (17:25 -0800)
commit96088b86c27b6a2aa27c0d475146a8ad47c08d33
tree107641721daeeb7e94e8c5839bbc8566eee6c2c5
parent506b602e6bf31fe404ab42eab23692203fc8ab90
ptp: add VMware virtual PTP clock driver

Add a PTP clock driver called ptp_vmw, for guests running on VMware ESXi
hypervisor. The driver attaches to a VMware virtual device called
"precision clock" that provides a mechanism for querying host system time.
Similar to existing virtual PTP clock drivers (e.g. ptp_kvm), ptp_vmw
utilizes the kernel's PTP hardware clock API to implement a clock device
that can be used as a reference in Chrony for synchronizing guest time with
host.

The driver is only applicable to x86 guests running in VMware virtual
machines with precision clock virtual device present. It uses a VMware
specific hypercall mechanism to read time from the device.

Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Vivek Thampi <vithampi@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
MAINTAINERS
drivers/ptp/Kconfig
drivers/ptp/Makefile
drivers/ptp/ptp_vmw.c [new file with mode: 0644]