diff options
author | Juergen Gross <jgross@suse.com> | 2023-12-10 07:21:37 +0100 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2023-12-10 23:33:09 +0100 |
commit | 60bc276b129eef8113f9d9b0a5cd5ae7f4c90acb (patch) | |
tree | d52cc5f8da9bbe65ee1a79b2d4ec549245a1bba7 /arch/x86/kernel/alternative.c | |
parent | da0fe6e68e104f79c1fef5c62a17bdd1634ea61c (diff) | |
download | linux-60bc276b129eef8113f9d9b0a5cd5ae7f4c90acb.tar.gz linux-60bc276b129eef8113f9d9b0a5cd5ae7f4c90acb.tar.bz2 linux-60bc276b129eef8113f9d9b0a5cd5ae7f4c90acb.zip |
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
Diffstat (limited to 'arch/x86/kernel/alternative.c')
-rw-r--r-- | arch/x86/kernel/alternative.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index 657305137bf9..48938bc36d71 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -160,7 +160,6 @@ extern s32 __retpoline_sites[], __retpoline_sites_end[]; extern s32 __return_sites[], __return_sites_end[]; extern s32 __cfi_sites[], __cfi_sites_end[]; extern s32 __ibt_endbr_seal[], __ibt_endbr_seal_end[]; -extern struct alt_instr __alt_instructions[], __alt_instructions_end[]; extern s32 __smp_locks[], __smp_locks_end[]; void text_poke_early(void *addr, const void *opcode, size_t len); |