Downstreams may want this for either security or performance reasons. Offer some options, and take advantage of some of the very low hanging fruit it offers.
There is plenty more incremental cleanup which can be done at a later point. Andrew Cooper (3): x86/pv: Options to disable and/or compile out 32bit PV support x86/pv: Short-circuit is_pv_{32,64}bit_domain() in !CONFIG_PV32 builds x86/pv: Compile out compat_gdt in !CONFIG_PV builds docs/misc/xen-command-line.pandoc | 12 +++++++++++- xen/arch/x86/Kconfig | 16 +++++++++++++++ xen/arch/x86/cpu/common.c | 5 +++-- xen/arch/x86/desc.c | 2 ++ xen/arch/x86/domctl.c | 4 ++-- xen/arch/x86/pv/domain.c | 41 ++++++++++++++++++++++++++++++++++++--- xen/arch/x86/pv/hypercall.c | 2 ++ xen/arch/x86/setup.c | 9 +++++++-- xen/arch/x86/smpboot.c | 5 ++++- xen/arch/x86/traps.c | 10 +++++++--- xen/arch/x86/x86_64/asm-offsets.c | 4 +++- xen/include/asm-x86/domain.h | 4 ++-- xen/include/asm-x86/pv/domain.h | 6 ++++++ xen/include/xen/sched.h | 15 ++++++++++++-- 14 files changed, 116 insertions(+), 19 deletions(-) -- 2.11.0