Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/xen: Add unwind hint annotations

Add unwind hint annotations to the xen head code so the ORC unwinder can
read head_64.o.

hypercall_page needs empty annotations at 32-byte intervals to match the
'xen_hypercall_*' ELF functions at those locations.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/70ed2eb516fe9266be766d953f93c2571bca88cc.1505764066.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Josh Poimboeuf and committed by
Ingo Molnar
abbe1cac 2582d3df

+6 -1
+6 -1
arch/x86/xen/xen-head.S
··· 9 9 #include <asm/boot.h> 10 10 #include <asm/asm.h> 11 11 #include <asm/page_types.h> 12 + #include <asm/unwind_hints.h> 12 13 13 14 #include <xen/interface/elfnote.h> 14 15 #include <xen/interface/features.h> ··· 20 19 #ifdef CONFIG_XEN_PV 21 20 __INIT 22 21 ENTRY(startup_xen) 22 + UNWIND_HINT_EMPTY 23 23 cld 24 24 25 25 /* Clear .bss */ ··· 42 40 .pushsection .text 43 41 .balign PAGE_SIZE 44 42 ENTRY(hypercall_page) 45 - .skip PAGE_SIZE 43 + .rept (PAGE_SIZE / 32) 44 + UNWIND_HINT_EMPTY 45 + .skip 32 46 + .endr 46 47 47 48 #define HYPERCALL(n) \ 48 49 .equ xen_hypercall_##n, hypercall_page + __HYPERVISOR_##n * 32; \