x86/xen: Make write_cr2() noinstr
authorPeter Zijlstra <peterz@infradead.org>
Thu, 24 Jun 2021 09:41:14 +0000 (11:41 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 17 Sep 2021 11:12:16 +0000 (13:12 +0200)
commit209cfd0cbb6722d3461e4f928dc150e4c3811948
tree5383d3aad2dc747a80eeceeba0d764cf0d670345
parent0a53c9acf4da51a75392b0b543ce5eaae78a567f
x86/xen: Make write_cr2() noinstr

vmlinux.o: warning: objtool: pv_ops[42]: native_write_cr2
vmlinux.o: warning: objtool: pv_ops[42]: xen_write_cr2
vmlinux.o: warning: objtool: exc_nmi()+0x127: call to pv_ops[42]() 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.563524913@infradead.org
arch/x86/include/asm/paravirt.h
arch/x86/kernel/paravirt.c
arch/x86/xen/mmu_pv.c