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

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

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [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: Thu, 20 Dec 2007 11:24:00 -0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 20 Dec 2007 11:24:41 -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:cc:in-reply-to:mime-version:content-type:references; bh=8V99aW1/+9x/HnFJFTJ+/WQ79b1Xnc4nDrHccf5/lQE=; b=F/O1c761eOyBmlL+02FRylKQZT/QS5hOyaYqNt8oGQxdo6R/8Y+h38E9POKDSVb76aI27Hnik4loPk+7HuvY7iUDDYWP5S6k9ptKIJ1mgJqT5JHnC5CM0OPyc5TXXuTDLtTP0LgtyNUgqndVv4DkuhDPrYshILU0x6uDZK7Lcns=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Z5BQP7Z2z8auq8J3QqY47600vbgx6lTEif5YkcZ5GYrfbXorkiY5vd31/0I11YQzetjADKC5MrVrQoFz4iUqbjxIyVlxdNfEqYFyzKbYCj518v5TFl5qOGzEK+sLL3rcMjBH1k21jFFc3bJuKqxculaW/0beIAvXphpZHhaDETk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C38FF6B8.1A139%Keir.Fraser@xxxxxxxxxxxx>
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>
References: <9dd432e50712191445m1bd2faf5mb32bb225d93704e4@xxxxxxxxxxxxxx> <C38FF6B8.1A139%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I made this change when a number of things were not working, because it appeared broken as you said.
I never backed out the change and re-tested. 
 
I agree, if watchdog_enable/disable are always called in even numbers, and enable is not called initially, it should be fine.
 
Dan.
On Dec 20, 2007 2:38 AM, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> wrote:
This shouldn't be true. If !opt_watchdog then setup.c will not call watchdog_enable() and watchdog_disable_count should be forever non-zero (because it is initialised to 1, and noone else should ever watchdog_enable() if they haven't previously done watchdog_disable()).

Did you make this change because you saw problems, or just because the code appeared broken?

By the way, I already applied the serial fix, and I'll hold off on the main patch pending a new one that makes more of the code arch-generic as suggested by Isaku Yamahata.

 Thanks,
 Keir


On 19/12/07 22:45, "Dan Doucette" <doucette.daniel@xxxxxxxxx> wrote:

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.
 
 


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


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