HomeFreeBSD

TSC: Use 0x40000010 CPUID leaf for all VM types

Description

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)

Details

Provenance
cpercivaAuthored on Jan 4 2022, 7:28 AM
Parents
rGeb28df303b06: Detect CPU type before asking VMWare for TSC freq
Branches
Unknown
Tags
Unknown