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
Showing
- arch/x86/include/asm/cpufeatures.h 2 additions, 0 deletionsarch/x86/include/asm/cpufeatures.h
- arch/x86/include/asm/paravirt.h 10 additions, 0 deletionsarch/x86/include/asm/paravirt.h
- arch/x86/kernel/alternative.c 28 additions, 2 deletionsarch/x86/kernel/alternative.c
- arch/x86/kernel/paravirt-spinlocks.c 9 additions, 0 deletionsarch/x86/kernel/paravirt-spinlocks.c
Please register or sign in to comment