Commit bfed4d9
libkrunfw: Add virtio-rtc driver support
Backport virtio-rtc driver from upstream Linux kernel
to enable RTC and PTP clock support in libkrun guests.
Added 4 upstreamed patches on virtio_rtc
Enabled virtio_rtc kernel configs
This allows libkrun guests to:
- Access host time via /dev/rtc* (RTC class driver)
- Access PTP clocks via /dev/ptp* (for time synchronization)
- Set alarms to wake from suspend
- Use cross-timestamping on ARM platforms
The driver has been tested with rust-vmm vhost-device-rtc backend.
Upstream commits:
- 0623c759276885c3ae88197ba6fb5c9c6ba8612f
- 9a17125a18f9ae1e1233a8e2d919059445b9d6fd
- e2ef16757bbe1d4566093179944e9ebe730b2701
- 9d4f22fd563e0cd02e8448e84d057e7c0132a586
Upstream patch author: Peter Hilber <quic_philber@quicinc.com>
Signed-off-by: Dorinda Bassey <dbassey@redhat.com>1 parent 3a424fd commit bfed4d9
6 files changed
Lines changed: 3127 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2279 | 2279 | | |
2280 | 2280 | | |
2281 | 2281 | | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
2282 | 2286 | | |
2283 | 2287 | | |
2284 | 2288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1394 | 1394 | | |
1395 | 1395 | | |
1396 | 1396 | | |
1397 | | - | |
| 1397 | + | |
1398 | 1398 | | |
1399 | 1399 | | |
1400 | 1400 | | |
| |||
1419 | 1419 | | |
1420 | 1420 | | |
1421 | 1421 | | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
1422 | 1425 | | |
1423 | 1426 | | |
1424 | 1427 | | |
| |||
0 commit comments