x86/paravirt: Make read_cr2() CALLEE_SAVE
The one paravirt read_cr2() implementation (Xen) is actually quite trivial and doesn't need to clobber anything other than the return register. Making read_cr2() CALLEE_SAVE avoids all the PUSH/POP nonsense and allows more convenient use from assembly. Signed-off-by:Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de> Reviewed-by:
Juergen Gross <jgross@suse.com> Cc: bp@alien8.de Cc: rostedt@goodmis.org Cc: luto@kernel.org Cc: torvalds@linux-foundation.org Cc: hpa@zytor.com Cc: dave.hansen@linux.intel.com Cc: zhe.he@windriver.com Cc: joel@joelfernandes.org Cc: devel@etsukata.com Link: https://lkml.kernel.org/r/20190711114335.887392493@infradead.org
Showing
- arch/x86/entry/calling.h 6 additions, 0 deletionsarch/x86/entry/calling.h
- arch/x86/include/asm/paravirt.h 13 additions, 9 deletionsarch/x86/include/asm/paravirt.h
- arch/x86/include/asm/paravirt_types.h 1 addition, 1 deletionarch/x86/include/asm/paravirt_types.h
- arch/x86/kernel/asm-offsets.c 1 addition, 0 deletionsarch/x86/kernel/asm-offsets.c
- arch/x86/kernel/head_64.S 1 addition, 3 deletionsarch/x86/kernel/head_64.S
- arch/x86/kernel/paravirt.c 1 addition, 1 deletionarch/x86/kernel/paravirt.c
- arch/x86/xen/enlighten_pv.c 2 additions, 1 deletionarch/x86/xen/enlighten_pv.c
- arch/x86/xen/mmu_pv.c 1 addition, 11 deletionsarch/x86/xen/mmu_pv.c
- arch/x86/xen/xen-asm.S 16 additions, 0 deletionsarch/x86/xen/xen-asm.S
- arch/x86/xen/xen-ops.h 3 additions, 0 deletionsarch/x86/xen/xen-ops.h
Loading
Please register or sign in to comment