lkml.org 
[lkml]   [2018]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 7/7] x86/microcode: Recheck IBRS features on microcode reload
On Thu, Jan 04, 2018 at 07:34:30PM +0100, Andrea Arcangeli wrote:
> void spec_ctrl_rescan_cpuid(void)
> {
> int cpu;
>
> if (use_ibp_disable)
> return;
> mutex_lock(&spec_ctrl_mutex);
> if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL ||
> boot_cpu_data.x86_vendor == X86_VENDOR_AMD) {
> /* detect spec ctrl related cpuid additions */
> init_scattered_cpuid_features(&boot_cpu_data);

You don't need to noodle through all the scattered features - just the
two bits.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

\
 
 \ /
  Last update: 2018-01-04 19:51    [W:0.096 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site