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

Details

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