freebsd-dev/sys/x86
Mark Johnston 2bed14192c pvclock: Export a vDSO page even without rdtscp available
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.

Reviewed by:	kib
Tested by:	Shrikanth R Kamath <kshrikanth@juniper.net>
MFC after:	2 weeks
Sponsored by:	Klara, Inc.
Sponsored by:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D38342
2023-02-03 11:48:25 -05:00
..
acpica amd64/efi: Stop falling back to hints for RSDP 2022-07-02 08:02:12 -06:00
bios x86: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:58 -07:00
conf Complete retire cp(4) 2022-12-14 11:38:55 +08:00
cpufreq cpufreq: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:39:29 -07:00
include pvclock: Export a vDSO page even without rdtscp available 2023-02-03 11:48:25 -05:00
iommu kmem_malloc/free: Use void * instead of vm_offset_t for kernel pointers. 2022-09-22 15:09:19 -07:00
isa atrtc: expose power loss as sysctl 2023-02-02 08:25:08 +01:00
linux linux(4): Preserve fpu fxsave state across signal delivery on amd64. 2023-02-02 20:21:37 +03:00
pci Add NO_LEGACY_PCIB kernel option to i386, amd64 2022-10-17 23:02:22 -07:00
x86 pvclock: Export a vDSO page even without rdtscp available 2023-02-03 11:48:25 -05:00
xen PVH: Set bootmethod to PVH 2022-10-17 23:02:22 -07:00