aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/domain.c
diff options
context:
space:
mode:
authorMukesh Rathor <mukesh.rathor@oracle.com>2012-06-11 15:11:58 +0100
committerMukesh Rathor <mukesh.rathor@oracle.com>2012-06-11 15:11:58 +0100
commit073d4837444dc3b7480a463945317c2b6c9110c5 (patch)
tree6cbc4549240874e2165761699a66da974f6abf05 /xen/common/domain.c
parenta485293145965f49900e4116cdd5810f64b819b5 (diff)
downloadxen-073d4837444dc3b7480a463945317c2b6c9110c5.tar.gz
xen-073d4837444dc3b7480a463945317c2b6c9110c5.tar.bz2
xen-073d4837444dc3b7480a463945317c2b6c9110c5.zip
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. Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/domain.c')
-rw-r--r--xen/common/domain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/common/domain.c b/xen/common/domain.c
index 8840202af5..c21d18b548 100644
--- a/xen/common/domain.c
+++ b/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. */