[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86: don't setup legacy syscall vector when !CONFIG_PV
commit 3528426cb93948e440da947963bd8163f186ef67 Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Fri Oct 19 15:28:36 2018 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Mon Oct 22 12:31:09 2018 +0100 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 <wei.liu2@xxxxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/smpboot.c | 2 ++ 1 file changed, 2 insertions(+) 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(); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |