|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] add 5 sec delay before reboot when dom0 crashes
This will gives you time to read the panic message before the machine
reboots. Similar behaviour to the 5 second pause when Xen crashes.
Signed-off-by: Chris Wright <chrisw@xxxxxxxxxxxx>
---
diff -r 50778f42f2dd xen/common/domain.c
--- a/xen/common/domain.c Wed Mar 29 15:02:40 2006
+++ b/xen/common/domain.c Wed Mar 29 13:35:03 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,12 @@
printk("Domain 0 halted: halting machine.\n");
machine_halt();
}
+ else if ( reason == SHUTDOWN_crash)
+ {
+ printk("Domain 0 crashed: rebooting machine in 5 seconds.\n");
+ mdelay(5000);
+ machine_restart(0);
+ }
else
{
printk("Domain 0 shutdown: rebooting machine.\n");
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|