p***@xen.org
2018-11-04 05:00:29 UTC
commit 3528426cb93948e440da947963bd8163f186ef67
Author: Wei Liu <***@citrix.com>
AuthorDate: Fri Oct 19 15:28:36 2018 +0100
Commit: Wei Liu <***@citrix.com>
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 <***@citrix.com>
Reviewed-by: Andrew Cooper <***@citrix.com>
---
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
Author: Wei Liu <***@citrix.com>
AuthorDate: Fri Oct 19 15:28:36 2018 +0100
Commit: Wei Liu <***@citrix.com>
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 <***@citrix.com>
Reviewed-by: Andrew Cooper <***@citrix.com>
---
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