Page MenuHomeFreeBSD

pvclock: Export a vDSO page even without rdtscp available
ClosedPublic

Authored by markj on Feb 1 2023, 5:18 PM.
Tags
None
Referenced Files
F102635421: D38342.diff
Fri, Nov 15, 3:27 AM
Unknown Object (File)
Thu, Nov 7, 2:51 PM
Unknown Object (File)
Mon, Oct 28, 4:57 PM
Unknown Object (File)
Mon, Oct 21, 1:12 PM
Unknown Object (File)
Mon, Oct 21, 1:11 PM
Unknown Object (File)
Mon, Oct 21, 1:11 PM
Unknown Object (File)
Mon, Oct 21, 1:01 PM
Unknown Object (File)
Thu, Oct 17, 10:40 AM
Subscribers

Details

Summary

When the cycle counter is "stable", i.e., synchronized across vCPUs by
the hypervisor, userspace can use a serialized rdtsc instead of relying
on rdtscp, just like the kernel timecounter does. This can be useful
for performance in guests where the hypervisor hides rdtscp for some
reason.

To avoid breaking compatibility with older userspace which expects
rdtscp to be usable when pvclock exports timekeeping info, hide this
feature behind a sysctl.

Tested by: Shrikanth R Kamath <kshrikanth@juniper.net>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable