Skip to content
Commit b38b0665 authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

x86: filter CPU features dependent on unavailable CPUID levels



Impact: Fixes potential crashes on misconfigured systems.

Some CPU features require specific CPUID levels to be available in
order to function, as they contain information about the operation of
a specific feature.  However, some BIOSes and virtualization software
provide the ability to mask CPUID levels in order to support legacy
operating systems.  We try to enable such CPUID levels when we know
how to do it, but for the remaining cases, filter out such CPU
features when there is no way for us to support them.

Do this in one place, in the CPUID code, with a table-driven approach.

Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 75a04811
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment