Re: [PATCH 7/9] x86/cpufeatures: Add feature bit for HRESET

From: Borislav Petkov
Date: Sat Feb 03 2024 - 04:37:12 EST


On Fri, Feb 02, 2024 at 08:05:13PM -0800, Ricardo Neri wrote:
> diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h
> index 8104f4791abd..3b42479c049d 100644
> --- a/arch/x86/include/asm/cpufeatures.h
> +++ b/arch/x86/include/asm/cpufeatures.h
> @@ -326,6 +326,7 @@
> #define X86_FEATURE_FSRC (12*32+12) /* "" Fast short REP {CMPSB,SCASB} */
> #define X86_FEATURE_LKGS (12*32+18) /* "" Load "kernel" (userspace) GS */
> #define X86_FEATURE_AMX_FP16 (12*32+21) /* "" AMX fp16 Support */
> +#define X86_FEATURE_HRESET (12*32+22) /* Hardware history reset instruction */

#define X86_FEATURE_HRESET (12*32+22) /* "" Hardware history reset instruction */

unless this really needs to be visible in /proc/cpuinfo:

Documentation/arch/x86/cpuinfo.rst

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette