WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH][2 of 3] GDB serial port debugging: Respect opt_watch

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][2 of 3] GDB serial port debugging: Respect opt_watchdog flag when resuming a debug session
From: "Dan Doucette" <doucette.daniel@xxxxxxxxx>
Date: Wed, 19 Dec 2007 14:45:22 -0800
Delivery-date: Wed, 19 Dec 2007 14:45:46 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=kDyNyYSbyhiz2QEK3TYK69WVuYgA/ZFUf0LZNC4MffM=; b=QON+r1pxC3EQSdjbEmdcmkGlRCM+8qdG2aIASrbzcIK6V0APj7kVUYfDoAINO9Vf/+2KB5CqU7dwpkCNDFoH7no/MwWub7xIsvvLaDZkJpfR9frWhloeor5bPiEQK04XfZUB8QG6xHgAxokMhKoNWzaVYS3+lsMY1y9Sca6H1JQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=fgM94C4KzHlbMxwSeVWoPtCMDvVlEYgAxYgVv30qeE5Yc4mowJYc+fKqd3x0+33KcxwFnlbocEs+1CLGA2g+XnYCtQo5TMaxPKKzXZXTKzeEKf6xcXlIZ0oF1zntbaiLCc5hOS+bd3TTMmMwlGaeFKlKI+zEn7cNEmH+gtAOJ2E=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hello,
 
When trap_to_gdb in common/gdbstub.c returns, it calls watchdog_enable().  However, the watchdog functionality is an option controlled in arch/x86/setup.c using the opt_watchdog boot parameter, and currently defaults to 'off'.  When the user resumes from a gdb session over the serial port, the watchdog will be enabled regardless of the 'opt_watchdog' flag.  This patch addresses this issue by propagating the optional parameter to arch/x86/nmi.c and conditionally enabling/disabling the watchdog based on the value of the now global 'opt_watchdog' flag.
 
 
% diffstat opt_watchdog_patch
 nmi.c   |   11 ++++++++++-
 setup.c |    5 ++---
 2 files changed, 12 insertions(+), 4 deletions(-)
 
Signed-off-by:  Dan Doucette <doucette.daniel@xxxxxxxxx>
 
Dan.
 
 

Attachment: opt_watchdog_patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>