Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /dev/ptp0 passthrough #6

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Add /dev/ptp0 passthrough #6

merged 1 commit into from
Sep 25, 2024

Conversation

Artoria2e5
Copy link

Some virtual cloud services provide a very good system time on their host, which can be accessed by the guest VMs through the /dev/ptp0 device. This interface is found on Hyper-V and KVM (the latter requires the ptp_kvm module to be loaded).

In my experience the time is very stable and often quite accurate, often helping chrony to converge faster to a good time. As a result, this commit adds an optional functionality to pass the host's /dev/ptp0 device to the container.

Some virtual cloud services provide a very good system time on their
host, which can be accessed by the guest VMs through the `/dev/ptp0`
device. This interface is found on Hyper-V and KVM (the latter
requires the `ptp_kvm` module to be loaded).

In my experience the time is very stable and often quite accurate,
often helping chrony to converge faster to a good time. As a result,
this commit adds an optional functionality to pass the host's
`/dev/ptp0` device to the container.
@simonrupf simonrupf merged commit 424dc8d into simonrupf:master Sep 25, 2024
1 check passed
@simonrupf
Copy link
Owner

Thank you! Neat feature and comprehensive change incl. doc - well done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants