From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Rathor Subject: [PATCH]: gdbsx: send virq to guest if gdbsx_vcpu_event is not active Date: Fri, 8 Jun 2012 11:07:10 -0700 Message-ID: <20120608110710.11850064@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/JsXDkVYMe/xsCaVOLECMtgA" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --MP_/JsXDkVYMe/xsCaVOLECMtgA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 thanks, Mukesh --MP_/JsXDkVYMe/xsCaVOLECMtgA Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=gdbsx.patch diff -r 32034d1914a6 xen/common/domain.c --- a/xen/common/domain.c Thu Jun 07 19:46:57 2012 +0100 +++ b/xen/common/domain.c Fri Jun 08 11:02:59 2012 -0700 @@ -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. */ --MP_/JsXDkVYMe/xsCaVOLECMtgA Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --MP_/JsXDkVYMe/xsCaVOLECMtgA--