diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-06-04 11:35:23 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-06-04 11:35:23 +0100 |
commit | 78c8506e77b393c00001fce9e8b21eda22ed3007 (patch) | |
tree | 389ca22b5b3f4cb280364e264beca2974ce4b924 /xen/common/shutdown.c | |
parent | 77622d85cf3fd61e96b71750d75af58b60eddfc4 (diff) | |
download | xen-78c8506e77b393c00001fce9e8b21eda22ed3007.tar.gz xen-78c8506e77b393c00001fce9e8b21eda22ed3007.tar.bz2 xen-78c8506e77b393c00001fce9e8b21eda22ed3007.zip |
Watchdog timers for domains
Each domain is allowed to set, reset and disable its timers; when any
timer runs out the domain is killed.
Patch from Christian Limpach <Christian.Limpach@citrix.com>
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/common/shutdown.c')
-rw-r--r-- | xen/common/shutdown.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xen/common/shutdown.c b/xen/common/shutdown.c index a8af94b130..65d59b5ca0 100644 --- a/xen/common/shutdown.c +++ b/xen/common/shutdown.c @@ -5,6 +5,7 @@ #include <xen/domain.h> #include <xen/delay.h> #include <xen/shutdown.h> +#include <xen/console.h> #include <asm/debugger.h> #include <public/sched.h> @@ -53,6 +54,14 @@ void dom0_shutdown(u8 reason) break; /* not reached */ } + case SHUTDOWN_watchdog: + { + printk("Domain 0 shutdown: watchdog rebooting machine.\n"); + kexec_crash(); + machine_restart(0); + break; /* not reached */ + } + default: { printk("Domain 0 shutdown (unknown reason %u): ", reason); |