[GIT PULL] x86/alternatives for v6.11-rc1

From: Borislav Petkov
Date: Mon Jul 15 2024 - 06:55:47 EST


Hi Linus,

please pull updates to x86/alternatives for v6.11-rc1.

Thx.

---

The following changes since commit 83a7eefedc9b56fe7bfeff13b6c7356688ffa670:

Linux 6.10-rc3 (2024-06-09 14:19:43 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip x86_alternatives_for_v6.11_rc1

for you to fetch changes up to 0d3db1f14abb4eb28613fbeb1e2ad92bac76debf:

x86/alternatives, kvm: Fix a couple of CALLs without a frame pointer (2024-07-01 12:41:11 +0200)

----------------------------------------------------------------
- This is basically PeterZ's idea to nest the alternative macros to avoid the
need to "spell out" the number of alternates in an ALTERNATIVE_n() macro and
thus have an ever-increasing complexity in those definitions.

For ease of bisection, the old macros are converted to the new, nested
variants in a step-by-step manner so that in case an issue is encountered
during testing, one can pinpoint the place where it fails easier. Because
debugging alternatives is a serious pain.

----------------------------------------------------------------
Borislav Petkov (AMD) (14):
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
x86/alternatives, kvm: Fix a couple of CALLs without a frame pointer

Peter Zijlstra (1):
x86/alternatives: Add nested alternatives macros

arch/x86/include/asm/alternative.h | 241 ++++++++++----------------------
arch/x86/include/asm/page_64.h | 2 +-
arch/x86/kernel/alternative.c | 22 ++-
arch/x86/kernel/fpu/xstate.h | 14 +-
arch/x86/kvm/emulate.c | 2 +-
tools/objtool/Documentation/objtool.txt | 19 +++
tools/objtool/arch/x86/special.c | 23 +++
tools/objtool/special.c | 16 +--
8 files changed, 152 insertions(+), 187 deletions(-)


--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette