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)
Dec 24 2024, 7:52 AM
Unknown Object (File)
Dec 5 2024, 4:56 AM
Unknown Object (File)
Nov 15 2024, 5:21 AM
Unknown Object (File)
Nov 15 2024, 3:27 AM
Unknown Object (File)
Nov 7 2024, 2:51 PM
Unknown Object (File)
Oct 28 2024, 4:57 PM
Unknown Object (File)
Oct 21 2024, 1:12 PM
Unknown Object (File)
Oct 21 2024, 1:11 PM
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