]> www.infradead.org Git - users/dwmw2/linux.git/commit
ptp: Add vDSO-style vmclock support vmclock-1
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 10 Jun 2024 14:10:11 +0000 (15:10 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 24 Jul 2024 16:42:02 +0000 (17:42 +0100)
commit83e1f9e736d3bccb138fa4aedaa2949d63610b68
tree94ae984e4f0c02888b91fc1de4f3637353ba7d34
parent13788269e81b7b0fd5f4c72994da888e673560a7
ptp: Add vDSO-style vmclock support

The vmclock "device" provides a shared memory region with precision clock
information. By using shared memory, it is safe across Live Migration.

Like the KVM PTP clock, this can convert TSC-based cross timestamps into
KVM clock values. Unlike the KVM PTP clock, it does so only when such is
actually helpful.

The memory region of the device is also exposed to userspace so it can be
read or memory mapped by application which need reliable notification of
clock disruptions.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
drivers/ptp/Kconfig
drivers/ptp/Makefile
drivers/ptp/ptp_vmclock.c [new file with mode: 0644]
include/uapi/linux/vmclock-abi.h [new file with mode: 0644]