aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/public
diff options
context:
space:
mode:
authorAndrew Cooper <andrew.cooper3@citrix.com>2013-02-15 09:38:45 +0100
committerAndrew Cooper <andrew.cooper3@citrix.com>2013-02-15 09:38:45 +0100
commit63a47721ad3f2bbeedf80850728c9a4aff0224ae (patch)
treee922f75ef6af8c5c4840d446f05978d7b90d482d /xen/include/public
parent59a28b5f045331641cbf0c1fc8d5d67afe328939 (diff)
downloadxen-63a47721ad3f2bbeedf80850728c9a4aff0224ae.tar.gz
xen-63a47721ad3f2bbeedf80850728c9a4aff0224ae.tar.bz2
xen-63a47721ad3f2bbeedf80850728c9a4aff0224ae.zip
hvm: Allow triple fault to imply crash rather than reboot
While the triple fault action on native hardware will result in a system reset, any modern operating system can and will make use of less violent reboot methods. As a result, the most likely cause of a triple fault is a fatal software bug. This patch allows the toolstack to indicate that a triple fault should mean a crash rather than a reboot. The default of reboot still remains the same. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Keir Fraser <keir@xen.org> Committed-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/include/public')
-rw-r--r--xen/include/public/hvm/params.h5
-rw-r--r--xen/include/public/sched.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/xen/include/public/hvm/params.h b/xen/include/public/hvm/params.h
index d28ca8e041..517a184107 100644
--- a/xen/include/public/hvm/params.h
+++ b/xen/include/public/hvm/params.h
@@ -142,6 +142,9 @@
#define HVM_PARAM_ACCESS_RING_PFN 28
#define HVM_PARAM_SHARING_RING_PFN 29
-#define HVM_NR_PARAMS 31
+/* SHUTDOWN_* action in case of a triple fault */
+#define HVM_PARAM_TRIPLE_FAULT_REASON 31
+
+#define HVM_NR_PARAMS 32
#endif /* __XEN_PUBLIC_HVM_PARAMS_H__ */
diff --git a/xen/include/public/sched.h b/xen/include/public/sched.h
index db5124a536..761cf07d59 100644
--- a/xen/include/public/sched.h
+++ b/xen/include/public/sched.h
@@ -158,6 +158,7 @@ DEFINE_XEN_GUEST_HANDLE(sched_watchdog_t);
#define SHUTDOWN_suspend 2 /* Clean up, save suspend info, kill. */
#define SHUTDOWN_crash 3 /* Tell controller we've crashed. */
#define SHUTDOWN_watchdog 4 /* Restart because watchdog time expired. */
+#define SHUTDOWN_MAX 4 /* Maximum valid shutdown reason. */
/* ` } */
#endif /* __XEN_PUBLIC_SCHED_H__ */