Skip to content

virtio-rtc: Add device specification #221

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

Open
quic-philber opened this issue Apr 15, 2025 · 1 comment
Open

virtio-rtc: Add device specification #221

quic-philber opened this issue Apr 15, 2025 · 1 comment

Comments

@quic-philber
Copy link

quic-philber commented Apr 15, 2025

The RTC (Real Time Clock) device provides information about current
time. The device can provide different clocks, for the UTC or TAI time
standards, or for physical time elapsed since some past epoch. For UTC
clocks, the device can also indicate how leap seconds are handled. The
driver can read the clocks with simple or more accurate methods.
Optionally, the driver can set an alarm.

The driver-side timekeeping can synchronize precisely to a local clock
exposed by the RTC device. If supported by the device, the driver can
obtain a cross-timestamp from the local clock and the system hardware
counter, in a way similar to the Linux kernel ptp_kvm driver.

The alarm allows the driver side to be woken up from a sleep state at a
specific time.

Latest proposal: https://lore.kernel.org/virtio-comment/[email protected]/

Linux kernel driver compliant to latest proposal: https://lore.kernel.org/lkml/[email protected]/

@quic-philber
Copy link
Author

(Updated the issue to refer to spec v9 instead of v8.)

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

No branches or pull requests

1 participant