Hello Dave, Pratik, > My hacky "vmm-clock" implementation is here if you'd like to compare > notes: https://git.sr.ht/~voutilad/linux/log/linux-5.4-obsd
The clock is in sync with these patches. It is keeping the clock in sync with the host. sudo dmesg | grep -i clock [ 0.034850] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.099077] [vmm_get_wallclock] [ 0.099083] [vmm_get_wallclock] wallclock: 1590341994.140345631 [ 0.204807] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x618c5af5a59, max_idle_ns: 440795234522 ns [ 1.214829] clocksource: timekeeping watchdog on CPU0: Marking clocksource 'tsc-early' as unstable because the skew is too large: [ 1.214831] clocksource: 'vmm-clock' wd_now: 1612079e9ed2e025 wd_last: 1612079e63384222 mask: ffffffffffffffff [ 1.214832] clocksource: 'tsc-early' cs_now: 824f14258d7a cs_last: 824e48e69b4f mask: ffffffffffffffff [ 1.214833] tsc: Marking TSC unstable due to clocksource watchdog [ 1.241836] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 1.246960] PTP clock support registered [ 1.254545] clocksource: Switched to clocksource vmm-clock [ 3.412453] rtc_cmos rtc_cmos: setting system clock to 2020-05-24T17:39:57 UTC (1590341997) [ 3.412468] Unstable clock detected, switching default tracing clock to "global" [ 3.412468] If you want to keep using the local clock, then add: [ 3.412468] "trace_clock=local" For the next guy with this issue on alpine, http://ix.io/2nfZ is the patch I used against the alpine aports git repo to build the kernel. Thanks
