Skip to contentSkip to conversation

: gdbsx: send virq to guest if gdbsx_vcpu_event is not active

PATCH New Mukesh Rathor 1 participant 1 message Jun 8, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : gdbsx: send virq to guest if gdbsx_vcpu_event is not active

gdbsx got broken along the way. During domain pause, don't send VIRQ_DEBUGGER to guest if gdbsx is active on that guest.

thanks,
Mukesh

xen/common/domain.c +3 -1
diff -r 32034d1914a6 xen/common/domain.c
@@ -624,7 +624,9 @@ void domain_pause_for_debugger(void)
     for_each_vcpu ( d, v )
         vcpu_sleep_nosync(v);
 
-    send_global_virq(VIRQ_DEBUGGER);
+    /* if gdbsx active, we just need to pause the domain */
+    if (current->arch.gdbsx_vcpu_event == 0)
+        send_global_virq(VIRQ_DEBUGGER);
 }
 
 /* Complete domain destroy after RCU readers are not holding old references. */

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel