[PATCH 1/3] x86/cpufeatures: Clean up Spectre v2 related CPUID flags

2018-01-27 Thread David Woodhouse
We want to expose the hardware features simply in /proc/cpuinfo as "ibrs", "ibpb" and "stibp". Since AMD gives us separate CPUID bits for those, use them as the user-visible bits. When the Intel SPEC_CTRL bit is set which indicates both IBRS and IBPB capability, set those (AMD) bits accordingly.

[PATCH 1/3] x86/cpufeatures: Clean up Spectre v2 related CPUID flags

2018-01-27 Thread David Woodhouse
We want to expose the hardware features simply in /proc/cpuinfo as "ibrs", "ibpb" and "stibp". Since AMD gives us separate CPUID bits for those, use them as the user-visible bits. When the Intel SPEC_CTRL bit is set which indicates both IBRS and IBPB capability, set those (AMD) bits accordingly.