]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio_rtc: Add module and driver core
authorPeter Hilber <quic_philber@quicinc.com>
Fri, 9 May 2025 16:07:22 +0000 (18:07 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 27 May 2025 14:27:54 +0000 (10:27 -0400)
commit0623c759276885c3ae88197ba6fb5c9c6ba8612f
tree4d335c4301cecfe87447142f4a374d9a6598c924
parent169294a14b3f80ce184fe832ff640b67a1b9eb3b
virtio_rtc: Add module and driver core

Add the virtio_rtc module and driver core. The virtio_rtc module implements
a driver compatible with the proposed Virtio RTC device specification.
The Virtio RTC (Real Time Clock) device provides information about current
time. The device can provide different clocks, e.g. for the UTC or TAI time
standards, or for physical time elapsed since some past epoch. The driver
can read the clocks with simple or more accurate methods.

Implement the core, which interacts with the Virtio RTC device. Apart from
this, the core does not expose functionality outside of the virtio_rtc
module. Follow-up patches will expose PTP clocks and an RTC Class device.

Provide synchronous messaging, which is enough for the expected time
synchronization use cases through PTP clocks (similar to ptp_kvm) or RTC
Class device.

Signed-off-by: Peter Hilber <quic_philber@quicinc.com>
Message-Id: <20250509160734.1772-2-quic_philber@quicinc.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
MAINTAINERS
drivers/virtio/Kconfig
drivers/virtio/Makefile
drivers/virtio/virtio_rtc_driver.c [new file with mode: 0644]
drivers/virtio/virtio_rtc_internal.h [new file with mode: 0644]
include/uapi/linux/virtio_rtc.h [new file with mode: 0644]