x86: don't build unused entry code when !PV32
authorJan Beulich <jbeulich@suse.com>
Thu, 15 Apr 2021 11:34:29 +0000 (13:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 15 Apr 2021 11:34:29 +0000 (13:34 +0200)
commit9cc6bd43addb8c043774b6fc59ae9a0d14371eab
tree33de62e6daf5dc12d9bd6a2d8709904ab6ebd67b
parented3ea7e95b0d94cc92a0fcf6c57e784ddfb24c97
x86: don't build unused entry code when !PV32

Except for the initial part of cstar_enter compat/entry.S is all dead
code in this case. Further, along the lines of the PV conditionals we
already have in entry.S, make code PV32-conditional there too (to a
fair part because this code actually references compat/entry.S).

This has the side effect of moving the tail part (now at compat_syscall)
of the code out of .text.entry (in line with e.g. compat_sysenter).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
xen/arch/x86/x86_64/Makefile
xen/arch/x86/x86_64/asm-offsets.c
xen/arch/x86/x86_64/compat/entry.S
xen/arch/x86/x86_64/entry.S
xen/include/asm-x86/asm_defns.h