[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250419123655.GRaAOY5yCyIz6TYcCC@fat_crate.local>
Date: Sat, 19 Apr 2025 14:36:55 +0200
From: Borislav Petkov <bp@...en8.de>
To: David Kaplan <david.kaplan@....com>
Cc: Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Josh Poimboeuf <jpoimboe@...nel.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 v5 02/16] x86/bugs: Restructure TAA mitigation
On Fri, Apr 18, 2025 at 11:17:07AM -0500, David Kaplan wrote:
> @@ -394,6 +399,11 @@ static const char * const taa_strings[] = {
> [TAA_MITIGATION_TSX_DISABLED] = "Mitigation: TSX disabled",
> };
>
> +static bool __init taa_vulnerable(void)
> +{
> + return boot_cpu_has_bug(X86_BUG_TAA) && boot_cpu_has(X86_FEATURE_RTM);
> +}
> +
> static void __init taa_select_mitigation(void)
> {
> if (!boot_cpu_has_bug(X86_BUG_TAA)) {
Shouldn't you use !taa_vulnerable() here directly too, since we're introducing
it as a helper?
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists