All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/traps: Avoid the #GP slowpath for guest #DB exceptions
@ 2015-01-08 13:25 Andrew Cooper
  2015-01-08 14:00 ` Jan Beulich
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cooper @ 2015-01-08 13:25 UTC (permalink / raw)
  To: Xen-devel; +Cc: Andrew Cooper, Keir Fraser, Jan Beulich, Tim Deegan

do_debug() is capable of correctly dealing with #DB exceptions in guest
context, and indeed needs to be as the 'icebp' instruction skips the DPL
check anyway.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Jan Beulich <JBeulich@suse.com>
CC: Keir Fraser <keir@xen.org>
CC: Tim Deegan <tim@xen.org>
---
 xen/arch/x86/traps.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c
index 3cd8746..e9bc3d6 100644
--- a/xen/arch/x86/traps.c
+++ b/xen/arch/x86/traps.c
@@ -3518,7 +3518,7 @@ void __init init_idt_traps(void)
      * has been read and saved on the stack.
      */
     set_intr_gate(TRAP_divide_error,&divide_error);
-    set_intr_gate(TRAP_debug,&debug);
+    set_swint_gate(TRAP_debug,&debug);       /* usable from all privileges */
     set_intr_gate(TRAP_nmi,&nmi);
     set_swint_gate(TRAP_int3,&int3);         /* usable from all privileges */
     set_swint_gate(TRAP_overflow,&overflow); /* usable from all privileges */
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-09 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-08 13:25 [PATCH] x86/traps: Avoid the #GP slowpath for guest #DB exceptions Andrew Cooper
2015-01-08 14:00 ` Jan Beulich
2015-01-09 17:09   ` Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.