Re: vmm(4): use monotonic base for pvclock

2021-06-01 Thread Mike Larkin
On Tue, Jun 01, 2021 at 08:03:43PM -0500, Scott Cheloha wrote: > The documentation for the Linux pvclock is pretty sparse but I am > pretty sure we want to use a monotonic base for ti_system_time. We > also have a function for converting a timespec into a 64-bit count of > nanoseconds we can use.

vmm(4): use monotonic base for pvclock

2021-06-01 Thread Scott Cheloha
The documentation for the Linux pvclock is pretty sparse but I am pretty sure we want to use a monotonic base for ti_system_time. We also have a function for converting a timespec into a 64-bit count of nanoseconds we can use. We may as well also use rdtsc_lfence() to ensure consistent behavior.