x86/paravirt: Switch mixed paravirt/alternative calls to alternatives
authorJuergen Gross <jgross@suse.com>
Sun, 10 Dec 2023 06:21:37 +0000 (07:21 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sun, 10 Dec 2023 22:33:09 +0000 (23:33 +0100)
commit60bc276b129eef8113f9d9b0a5cd5ae7f4c90acb
treed52cc5f8da9bbe65ee1a79b2d4ec549245a1bba7
parentda0fe6e68e104f79c1fef5c62a17bdd1634ea61c
x86/paravirt: Switch mixed paravirt/alternative calls to alternatives

Instead of stacking alternative and paravirt patching, use the new
ALT_FLAG_CALL flag to switch those mixed calls to pure alternative
handling.

Eliminate the need to be careful regarding the sequence of alternative
and paravirt patching.

  [ bp: Touch up commit message. ]

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20231210062138.2417-5-jgross@suse.com
arch/x86/include/asm/alternative.h
arch/x86/include/asm/paravirt.h
arch/x86/include/asm/paravirt_types.h
arch/x86/kernel/alternative.c
arch/x86/kernel/callthunks.c
arch/x86/kernel/module.c