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

x86: xen: remove STACK_FRAME_NON_STANDARD from xen_cpuid

Since commit 4d65adfcd119 ("x86: xen: insn: Decode Xen and KVM
emulate-prefix signature"), objtool is able to correctly parse the
prefixed instruction in xen_cpuid and emit correct orc unwind
information. Hence, marking the function as STACKFRAME_NON_STANDARD is
no longer needed.

This commit is basically a revert of commit 983bb6d254c7 ("x86/xen: Mark
xen_cpuid() stack frame as non-standard").

Signed-off-by: Maximilian Heyne <mheyne@amazon.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
CC: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://lore.kernel.org/r/20220517162425.100567-1-mheyne@amazon.de
Signed-off-by: Juergen Gross <jgross@suse.com>

authored by

Maximilian Heyne and committed by
Juergen Gross
1591a65f 12f112c3

-2
-2
arch/x86/xen/enlighten_pv.c
··· 30 30 #include <linux/pci.h> 31 31 #include <linux/gfp.h> 32 32 #include <linux/edd.h> 33 - #include <linux/objtool.h> 34 33 35 34 #include <xen/xen.h> 36 35 #include <xen/events.h> ··· 164 165 165 166 *bx &= maskebx; 166 167 } 167 - STACK_FRAME_NON_STANDARD(xen_cpuid); /* XEN_EMULATE_PREFIX */ 168 168 169 169 static bool __init xen_check_mwait(void) 170 170 {