From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v5 2/9] xen: introduce SHUTDOWN_soft_reset shutdown reason Date: Tue, 13 Jan 2015 12:20:33 +0000 Message-ID: <1421151633.19103.48.camel@citrix.com> References: <1418305541-5135-1-git-send-email-vkuznets@redhat.com> <1418305541-5135-3-git-send-email-vkuznets@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YB0Sd-0005FS-Io for xen-devel@lists.xenproject.org; Tue, 13 Jan 2015 12:20:39 +0000 In-Reply-To: <1418305541-5135-3-git-send-email-vkuznets@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Vitaly Kuznetsov Cc: Wei Liu , Andrew Jones , Julien Grall , Keir Fraser , Stefano Stabellini , Andrew Cooper , Ian Jackson , Olaf Hering , Tim Deegan , David Vrabel , Jan Beulich , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-12-11 at 14:45 +0100, Vitaly Kuznetsov wrote: > Signed-off-by: Vitaly Kuznetsov > --- > 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 */ Would a host kexec be an appropriate response to this situation, assuming a kernel was loaded? (My guy says no, but thought I would mention it) Ian.