x86: slim down hypercall handling when !PV32
authorJan Beulich <jbeulich@suse.com>
Thu, 15 Apr 2021 11:35:32 +0000 (13:35 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 15 Apr 2021 11:35:32 +0000 (13:35 +0200)
commit527922008bcedb53f01cf91428303d650fb67360
tree87195d1d55353604d6ac0fc9d5ca082832b804fc
parent9cc6bd43addb8c043774b6fc59ae9a0d14371eab
x86: slim down hypercall handling when !PV32

In such a build various of the compat handlers aren't needed. Don't
reference them from the hypercall table, and compile out those which
aren't needed for HVM. Also compile out switch_compat(), which has no
purpose in such a build.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
12 files changed:
xen/arch/x86/Makefile
xen/arch/x86/hvm/hypercall.c
xen/arch/x86/mm.c
xen/arch/x86/pv/callback.c
xen/arch/x86/pv/descriptor-tables.c
xen/arch/x86/pv/domain.c
xen/arch/x86/pv/hypercall.c
xen/arch/x86/pv/iret.c
xen/arch/x86/pv/shim.c
xen/include/asm-x86/compat.h
xen/include/asm-x86/hypercall.h
xen/include/xen/compat.h