aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/shutdown.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-08-07 15:35:06 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-08-07 15:35:06 +0100
commit9ee1bd77bfc225d638c8df106238f875025b5e8f (patch)
tree1c3f2a8d2f3358fa195d43390e0d9f6cc41c3bb3 /xen/include/xen/shutdown.h
parent3923c6638e50c51781fb5f6f29729c71336eb95a (diff)
downloadxen-9ee1bd77bfc225d638c8df106238f875025b5e8f.tar.gz
xen-9ee1bd77bfc225d638c8df106238f875025b5e8f.tar.bz2
xen-9ee1bd77bfc225d638c8df106238f875025b5e8f.zip
[XEN] Clean up shutdown handling and ignore opt_noreboot if dom0
shuts down cleanly. The option is intended only to retain information on the local console in case of a crash. Based on a patch from Muli Ben-Yehuda <muli@il.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/shutdown.h')
-rw-r--r--xen/include/xen/shutdown.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/xen/include/xen/shutdown.h b/xen/include/xen/shutdown.h
new file mode 100644
index 0000000000..cfe20002d8
--- /dev/null
+++ b/xen/include/xen/shutdown.h
@@ -0,0 +1,13 @@
+#ifndef __XEN_SHUTDOWN_H__
+#define __XEN_SHUTDOWN_H__
+
+/* opt_noreboot: If true, machine will need manual reset on error. */
+extern int opt_noreboot;
+
+void dom0_shutdown(u8 reason);
+
+void machine_restart(char *cmd);
+void machine_halt(void);
+void machine_power_off(void);
+
+#endif /* __XEN_SHUTDOWN_H__ */