x86/paravirt: Add new features for paravirt patching
authorJuergen Gross <jgross@suse.com>
Thu, 11 Mar 2021 14:23:13 +0000 (15:23 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 11 Mar 2021 18:51:49 +0000 (19:51 +0100)
commit4e6292114c741221479046515b1aa8145cf1e3f6
treef3a8bb9b151d60b60c26f81872ebcc32cf55a94b
parent2fe2a2c7a97c9bc32acc79154b75e754280f7867
x86/paravirt: Add new features for paravirt patching

For being able to switch paravirt patching from special cased custom
code sequences to ALTERNATIVE handling some X86_FEATURE_* are needed
as new features. This enables to have the standard indirect pv call
as the default code and to patch that with the non-Xen custom code
sequence via ALTERNATIVE patching later.

Make sure paravirt patching is performed before alternatives patching.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210311142319.4723-9-jgross@suse.com
arch/x86/include/asm/cpufeatures.h
arch/x86/include/asm/paravirt.h
arch/x86/kernel/alternative.c
arch/x86/kernel/paravirt-spinlocks.c