[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH][2 of 3] GDB serial port debugging: Respect opt_watchdog flag when resuming a debug session
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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |