[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Xen waits 5 seconds to reboot when domain 0 crashes, giving
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID a4acdf920c2778222fbbfd02e8b7c350c7374d7d # Parent c7020299facc4940b245b3f5280d6bf6ef6a77b1 Xen waits 5 seconds to reboot when domain 0 crashes, giving time to read crash messages. From: Chris Wright <chrisw@xxxxxxxxxxxx> Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> diff -r c7020299facc -r a4acdf920c27 xen/common/domain.c --- a/xen/common/domain.c Wed Mar 29 17:46:51 2006 +++ b/xen/common/domain.c Wed Mar 29 23:07:23 2006 @@ -19,6 +19,7 @@ #include <xen/rangeset.h> #include <xen/guest_access.h> #include <xen/hypercall.h> +#include <xen/delay.h> #include <asm/debugger.h> #include <public/dom0_ops.h> #include <public/sched.h> @@ -222,6 +223,13 @@ printk("Domain 0 halted: halting machine.\n"); machine_halt(); } + else if ( reason == SHUTDOWN_crash ) + { + printk("Domain 0 crashed: rebooting machine in 5 seconds.\n"); + watchdog_disable(); + mdelay(5000); + machine_restart(0); + } else { printk("Domain 0 shutdown: rebooting machine.\n"); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |