Re: [PATCH 0/6] IBPB cleanups and a fixup

Yosry Ahmed
2025-02-20T21:51:12Z

On Thu, Feb 20, 2025 at 12:47:24PM -0800, Josh Poimboeuf wrote:
> On Thu, Feb 20, 2025 at 07:59:54PM +0000, Yosry Ahmed wrote:
> > > static inline void indirect_branch_prediction_barrier(void)
> > > {
> > > asm volatile(ALTERNATIVE("", "call write_ibpb", X86_FEATURE_IBPB)
> > > : ASM_CALL_CONSTRAINT
> > > : : "rax", "rcx", "rdx", "memory");
> > > }
> > >
> > > I also renamed "entry_ibpb" -> "write_ibpb" since it's no longer just
> > > for entry code.
> >
> > Do you want me to add this in this series or do you want to do it on top
> > of it? If you have a patch lying around I can also include it as-is.
>
> Your patches are already an improvement and can be taken as-is:
>
> Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
>
> I'll try to dust off my patches soon and rebase them on yours.

SGTM, thanks!

>
> --
> Josh