From: Peter Zijlstra Date: Thu, 24 Jun 2021 09:41:18 +0000 (+0200) Subject: x86/xen: Make hypercall_page noinstr X-Git-Tag: v5.16-rc1~199^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74ea805b79d2b6eb472daa2540ed35ccb4ed23e7;p=thirdparty%2Fkernel%2Flinux.git x86/xen: Make hypercall_page noinstr vmlinux.o: warning: objtool: xen_set_debugreg()+0x3: call to hypercall_page() leaves .noinstr.text section vmlinux.o: warning: objtool: xen_get_debugreg()+0x3: call to hypercall_page() leaves .noinstr.text section vmlinux.o: warning: objtool: xen_irq_enable()+0x24: call to hypercall_page() leaves .noinstr.text section Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Juergen Gross Link: https://lore.kernel.org/r/20210624095148.810950584@infradead.org --- diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S index 488944d6d430e..9e27b86a0c31b 100644 --- a/arch/x86/xen/xen-head.S +++ b/arch/x86/xen/xen-head.S @@ -20,7 +20,7 @@ #include #include -.pushsection .text +.pushsection .noinstr.text, "ax" .balign PAGE_SIZE SYM_CODE_START(hypercall_page) .rept (PAGE_SIZE / 32)