The new kernel CPUID API
summary
A centralized kernel CPUID API exposes typed, generated headers (from the x86 CPUID database XML→CSV→C pipeline) and replaces hundreds of ad‑hoc call sites with a small set of calls that return cached, sanitized structures per CPU. Static leaves compile down to fast, checked access via compile‑time checks while dynamic leaves use a subleaf API. The tree hides vendor/MSR quirks and dependencies, collapses ten‑line bit‑twiddles to one null‑checked pointer, and integrates with the x86 feature system.
AI-written summary · about
