OSDN Git Service

x86/xen: Make read_cr2() noinstr
authorPeter Zijlstra <peterz@infradead.org>
Thu, 24 Jun 2021 09:41:13 +0000 (11:41 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 17 Sep 2021 11:11:50 +0000 (13:11 +0200)
commit0a53c9acf4da51a75392b0b543ce5eaae78a567f
tree7e9465b34506f3eca06c3b235bd920e2802a9c9d
parenteac46b323b28215ad19d53390737df4aa336ac14
x86/xen: Make read_cr2() noinstr

vmlinux.o: warning: objtool: pv_ops[41]: native_read_cr2
vmlinux.o: warning: objtool: pv_ops[41]: xen_read_cr2
vmlinux.o: warning: objtool: pv_ops[41]: xen_read_cr2_direct
vmlinux.o: warning: objtool: exc_double_fault()+0x15: call to pv_ops[41]() leaves .noinstr.text section

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20210624095148.500331616@infradead.org
arch/x86/include/asm/paravirt.h
arch/x86/kernel/paravirt.c
arch/x86/xen/xen-asm.S