Re: [PATCH v1 00/14] x86/alternatives: Nest them

From: Peter Zijlstra
Date: Tue Jun 11 2024 - 09:28:36 EST


On Fri, Jun 07, 2024 at 01:16:47PM +0200, Borislav Petkov wrote:

> Borislav Petkov (AMD) (13):
> x86/alternative: Zap alternative_ternary()
> x86/alternative: Convert alternative()
> x86/alternative: Convert alternative_2()
> x86/alternative: Convert alternative_input()
> x86/alternative: Convert alternative_io()
> x86/alternative: Convert alternative_call()
> x86/alternative: Convert alternative_call_2()
> x86/alternative: Convert ALTERNATIVE_TERNARY()
> x86/alternative: Convert ALTERNATIVE_3()
> x86/alternative: Convert the asm ALTERNATIVE() macro
> x86/alternative: Convert the asm ALTERNATIVE_2() macro
> x86/alternative: Convert the asm ALTERNATIVE_3() macro
> x86/alternative: Replace the old macros
>
> Peter Zijlstra (1):
> x86/alternatives: Add nested alternatives macros
>
> arch/x86/include/asm/alternative.h | 225 +++++++++--------------------
> arch/x86/kernel/alternative.c | 20 ++-
> arch/x86/kernel/fpu/xstate.h | 14 +-
> tools/objtool/arch/x86/special.c | 23 +++
> tools/objtool/special.c | 16 +-
> 5 files changed, 125 insertions(+), 173 deletions(-)

The whole back and forth with the n_foo things ia weird, but sure, have
at.

Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>