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

From: Ricardo Neri
Date: Sat Feb 03 2024 - 22:48:32 EST


On Sat, Feb 03, 2024 at 10:36:22AM +0100, Borislav Petkov wrote:
> 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

Good point. There is no need to expose HRESET in /proc/cpuinfo. I will
implement this change.