Re: [PATCH v6 1/2] x86, lib: Add WBNOINVD helper functions

Borislav Petkov
2025-02-26T14:22:58Z

On Tue, Feb 25, 2025 at 05:26:53PM -0800, Sean Christopherson wrote:
> /* Instruction encoding provided for binutils backwards compatibility. */
> #define ASM_WBNOINVD ".byte 0xf3,0x0f,0x09"

Yah, or simply INSN_WBNOINVD as that name basically tells you what it is. And
we have already

arch/x86/include/asm/bug.h:13:#define INSN_UD2 0x0b0f

oh and

arch/x86/include/asm/bug.h:12:#define ASM_UD2 ".byte 0x0f, 0x0b"

Pff.

--
Regards/Gruss,
Boris.