From: Wei Liu Date: Fri, 19 Oct 2018 14:28:36 +0000 (+0100) Subject: x86: don't setup legacy syscall vector when !CONFIG_PV X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3117 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3528426cb93948e440da947963bd8163f186ef67;p=xen.git x86: don't setup legacy syscall vector when !CONFIG_PV The code snippet is to switch between SYS_DECS_trap_gate and SYS_DESC_irq_gate depending on whether XPTI is used. When PV is disabled there is no need to switch. Signed-off-by: Wei Liu Reviewed-by: Andrew Cooper --- diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c index 35abfc4ea4..43deb82e53 100644 --- a/xen/arch/x86/smpboot.c +++ b/xen/arch/x86/smpboot.c @@ -1094,12 +1094,14 @@ void __init smp_prepare_cpus(void) { get_cpu_info()->pv_cr3 = 0; +#ifdef CONFIG_PV /* * All entry points which may need to switch page tables have to start * with interrupts off. Re-write what pv_trap_init() has put there. */ _set_gate(idt_table + LEGACY_SYSCALL_VECTOR, SYS_DESC_irq_gate, 3, &int80_direct_trap); +#endif } set_nr_sockets();