search for: define_paravirt_asm

Displaying 5 results from an estimated 5 matches for "define_paravirt_asm".

2023 Mar 08
3
[PATCH] x86/paravirt: convert simple paravirt functions to asm
...are hidden from gcc. In case the kernel is compiled with "-fzero-call-used-regs" the compiler will clobber caller-saved registers at the end of C functions, which will result in unexpectedly zeroed registers at the call site of the related paravirt functions. Replace the C functions with DEFINE_PARAVIRT_ASM() constructs using the same instructions as the related paravirt calls in the PVOP_ALT_[V]CALLEE*() macros. Signed-off-by: Juergen Gross <jgross at suse.com> --- arch/x86/include/asm/paravirt_types.h | 8 +++++++- arch/x86/kernel/paravirt.c | 27 ++++++--------------------- 2 fi...
2023 Mar 17
0
[PATCH v2] x86/paravirt: convert simple paravirt functions to asm
...are hidden from gcc. In case the kernel is compiled with "-fzero-call-used-regs" the compiler will clobber caller-saved registers at the end of C functions, which will result in unexpectedly zeroed registers at the call site of the related paravirt functions. Replace the C functions with DEFINE_PARAVIRT_ASM() constructs using the same instructions as the related paravirt calls in the PVOP_ALT_[V]CALLEE*() macros. Signed-off-by: Juergen Gross <jgross at suse.com> --- V2: - use noinstr section (Peter Zijlstra, Andrew Cooper) --- arch/x86/include/asm/paravirt_types.h | 8 +++++++- arch/x86/kerne...
2023 Jun 08
3
[RFC PATCH 0/3] x86/paravirt: Get rid of paravirt patching
This is a small series getting rid of paravirt patching by switching completely to alternative patching for the same functionality. The basic idea is to add the capability to switch from indirect to direct calls via a special alternative patching option. This removes _some_ of the paravirt macro maze, but most of it needs to stay due to the need of hiding the call instructions from the compiler
2023 Jun 08
3
[RFC PATCH 0/3] x86/paravirt: Get rid of paravirt patching
This is a small series getting rid of paravirt patching by switching completely to alternative patching for the same functionality. The basic idea is to add the capability to switch from indirect to direct calls via a special alternative patching option. This removes _some_ of the paravirt macro maze, but most of it needs to stay due to the need of hiding the call instructions from the compiler
2023 Mar 10
1
[PATCH] x86/paravirt: convert simple paravirt functions to asm
...ompiled with "-fzero-call-used-regs" the compiler will >> clobber caller-saved registers at the end of C functions, which will >> result in unexpectedly zeroed registers at the call site of the >> related paravirt functions. >> >> Replace the C functions with DEFINE_PARAVIRT_ASM() constructs using >> the same instructions as the related paravirt calls in the >> PVOP_ALT_[V]CALLEE*() macros. >> >> Signed-off-by: Juergen Gross <jgross at suse.com> >> --- >> arch/x86/include/asm/paravirt_types.h | 8 +++++++- >> arch/x86/ker...