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
Unknown Object (File)
May 20 2024, 1:22 PM
Unknown Object (File)
May 9 2024, 7:13 PM
Unknown Object (File)
Jan 12 2024, 11:36 PM
Unknown Object (File)
Dec 20 2023, 6:47 AM
Unknown Object (File)
Nov 12 2023, 7:16 AM
Unknown Object (File)
Nov 6 2023, 6:28 AM
Unknown Object (File)
Nov 4 2023, 6:49 AM
Unknown Object (File)
Oct 11 2023, 6:15 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