[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v4 2/9] xen: introduce SHUTDOWN_soft_reset shutdown reason
Signed-off-by: Vitaly Kuznetsov <vkuznets@xxxxxxxxxx> --- xen/common/shutdown.c | 7 +++++++ xen/include/public/sched.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/xen/common/shutdown.c b/xen/common/shutdown.c index 94d4c53..5c3a158 100644 --- a/xen/common/shutdown.c +++ b/xen/common/shutdown.c @@ -71,6 +71,13 @@ void hwdom_shutdown(u8 reason) break; /* not reached */ } + case SHUTDOWN_soft_reset: + { + printk("Domain 0 did soft reset but it is unsupported, rebooting.\n"); + machine_restart(0); + break; /* not reached */ + } + default: { printk("Domain 0 shutdown (unknown reason %u): ", reason); diff --git a/xen/include/public/sched.h b/xen/include/public/sched.h index 4000ac9..800c808 100644 --- a/xen/include/public/sched.h +++ b/xen/include/public/sched.h @@ -159,7 +159,8 @@ 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. */ +#define SHUTDOWN_soft_reset 5 /* Soft reset, rebuild keeping memory content */ +#define SHUTDOWN_MAX 5 /* Maximum valid shutdown reason. */ /* ` } */ #endif /* __XEN_PUBLIC_SCHED_H__ */ -- 1.9.3 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |