]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
TSC: Use 0x40000010 CPUID leaf for all VM types
authorColin Percival <cperciva@FreeBSD.org>
Tue, 4 Jan 2022 07:28:36 +0000 (23:28 -0800)
committerColin Percival <cperciva@FreeBSD.org>
Fri, 11 Feb 2022 06:52:00 +0000 (22:52 -0800)
commit51e77b34e4bf76c8aa2c882f64ef923c2fbe6108
treeee0edbfe35480c291c7a07902412f3eded5b6acc
parenteb28df303b068c5db94943c9858e359975f7fa74
TSC: Use 0x40000010 CPUID leaf for all VM types

While this CPUID leaf was originally only used by VMWare, other
hypervisors now also use it to announce the TSC frequency to guests.

This speeds up the boot process by 100 ms in EC2 and other systems,
by allowing the early calibration DELAY to be skipped.

Reviewed by: markj
Sponsored by: https://www.patreon.com/cperciva

(cherry picked from commit 4a432614f68cf35879dbb4ebef089f5b8db95334)
sys/x86/x86/tsc.c