Skip to content

Commit 4c9c26f

Browse files
Peter ZijlstraIngo Molnar
authored andcommitted
x86/xen: Fix noinstr fail in exc_xen_unknown_trap()
Fix: vmlinux.o: warning: objtool: exc_xen_unknown_trap()+0x7: call to printk() leaves .noinstr.text section Fixes: 2e92493 ("x86/xen: avoid warning in Xen pv guest with CONFIG_AMD_MEM_ENCRYPT enabled") Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 84e6006 commit 4c9c26f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/xen/enlighten_pv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,10 @@ DEFINE_IDTENTRY_RAW(xenpv_exc_debug)
592592
DEFINE_IDTENTRY_RAW(exc_xen_unknown_trap)
593593
{
594594
/* This should never happen and there is no way to handle it. */
595+
instrumentation_begin();
595596
pr_err("Unknown trap in Xen PV mode.");
596597
BUG();
598+
instrumentation_end();
597599
}
598600

599601
#ifdef CONFIG_X86_MCE

0 commit comments

Comments
 (0)