| Date | Fri, 24 Feb 2023 10:52:57 -0800 | From | Josh Poimboeuf <> | Subject | Re: [PATCH v9 7/8] x86/cpu: Support AMD Automatic IBRS |
| |
On Tue, Jan 24, 2023 at 10:33:18AM -0600, Kim Phillips wrote: > @@ -1495,8 +1495,12 @@ static void __init spectre_v2_select_mitigation(void) > pr_err(SPECTRE_V2_EIBRS_EBPF_MSG); > > if (spectre_v2_in_ibrs_mode(mode)) { > - x86_spec_ctrl_base |= SPEC_CTRL_IBRS; > - update_spec_ctrl(x86_spec_ctrl_base); > + if (boot_cpu_has(X86_FEATURE_AUTOIBRS)) { > + msr_set_bit(MSR_EFER, _EFER_AUTOIBRS);
Doesn't this only enable it on the boot CPU?
-- Josh
|