Re: [PATCH v6 1/6] x86/bugs: Add asm helpers for executing VERW

From: Pawan Gupta
Date: Fri Feb 02 2024 - 16:32:03 EST


On Thu, Feb 01, 2024 at 07:29:09PM -0800, Josh Poimboeuf wrote:
> On Tue, Jan 23, 2024 at 11:41:01PM -0800, Pawan Gupta wrote:
> > index 4af140cf5719..79a7e81b9458 100644
> > --- a/arch/x86/include/asm/cpufeatures.h
> > +++ b/arch/x86/include/asm/cpufeatures.h
> > @@ -308,10 +308,10 @@
> > #define X86_FEATURE_SMBA (11*32+21) /* "" Slow Memory Bandwidth Allocation */
> > #define X86_FEATURE_BMEC (11*32+22) /* "" Bandwidth Monitoring Event Configuration */
> > #define X86_FEATURE_USER_SHSTK (11*32+23) /* Shadow stack support for user mode applications */
> > -
> > #define X86_FEATURE_SRSO (11*32+24) /* "" AMD BTB untrain RETs */
> > #define X86_FEATURE_SRSO_ALIAS (11*32+25) /* "" AMD BTB untrain RETs through aliasing */
> > #define X86_FEATURE_IBPB_ON_VMEXIT (11*32+26) /* "" Issue an IBPB only on VMEXIT */
> > +#define X86_FEATURE_CLEAR_CPU_BUF (11*32+27) /* "" Clear CPU buffers using VERW */
>
> This will need to be rebased. And the "11*32" level is now full in
> Linus' tree, so this will presumably need to go to a different "level".

Yes, will send a new rebased version.