Re: [PATCH v6 1/2] x86, lib: Add WBNOINVD helper functions
From: Borislav Petkov
Date: Wed Feb 26 2025 - 09:26:12 EST
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.
https://people.kernel.org/tglx/notes-about-netiquette