[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250211010743.75kzltegyvhdwkuw@jpoimboe>
Date: Mon, 10 Feb 2025 17:07:43 -0800
From: Josh Poimboeuf <jpoimboe@...nel.org>
To: David Kaplan <david.kaplan@....com>
Cc: Thomas Gleixner <tglx@...utronix.de>, Borislav Petkov <bp@...en8.de>,
Peter Zijlstra <peterz@...radead.org>,
Pawan Gupta <pawan.kumar.gupta@...ux.intel.com>,
Ingo Molnar <mingo@...hat.com>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
"H . Peter Anvin" <hpa@...or.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 15/35] x86/bugs: Restructure spectre_v2 mitigation
On Wed, Jan 08, 2025 at 02:24:55PM -0600, David Kaplan wrote:
> +static void __init spectre_v2_update_mitigation(void)
> +{
> + if (spectre_v2_cmd == SPECTRE_V2_CMD_AUTO) {
> + if (IS_ENABLED(CONFIG_MITIGATION_IBRS_ENTRY) &&
> + boot_cpu_has_bug(X86_BUG_RETBLEED) &&
> + retbleed_mitigation != RETBLEED_MITIGATION_NONE &&
> + retbleed_mitigation != RETBLEED_MITIGATION_STUFF &&
> + boot_cpu_has(X86_FEATURE_IBRS) &&
> + boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) {
> + spectre_v2_enabled = SPECTRE_V2_IBRS;
> + }
> + }
This has a dependency on retbleed_update_mitigation() which hasn't run
yet?
--
Josh
Powered by blists - more mailing lists