Manual merge.
Signed-off-by: Keir Fraser <keir@xensource.com>
debugger_trap_immediate();
- if ( reason == 0 )
+ if ( reason == SHUTDOWN_poweroff )
{
printk("Domain 0 halted: halting machine.\n");
machine_halt();
}
}
+ if ( reason == SHUTDOWN_crash )
+ {
+ domain_crash();
+ BUG();
+ }
+
d->shutdown_code = reason;
set_bit(DF_SHUTDOWN, &d->d_flags);
#include "ring.h"
-/*
- * Reason codes for SCHEDOP_shutdown. These are opaque to Xen but may be
- * interpreted by control software to determine the appropriate action. These
- * are only really advisories: the controller can actually do as it likes.
- */
-#define SHUTDOWN_poweroff 0 /* Domain exited normally. Clean up and kill. */
-#define SHUTDOWN_reboot 1 /* Clean up, kill, and then restart. */
-#define SHUTDOWN_suspend 2 /* Clean up, save suspend info, kill. */
-
-
/*
* CONTROLLER MESSAGING INTERFACE.
*/