]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit741b65872df617a1f58f175b92d50f1885e14fd0
treef3a8bb9b151d60b60c26f81872ebcc32cf55a94b
parentace11cc2f2d43cd3bf006ea34195a76bf2ecceb1
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