From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v5 3/9] libxl: support SHUTDOWN_soft_reset shutdown reason Date: Tue, 13 Jan 2015 12:22:22 +0000 Message-ID: <1421151742.19103.50.camel@citrix.com> References: <1418305541-5135-1-git-send-email-vkuznets@redhat.com> <1418305541-5135-4-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YB0Uj-0005jV-D1 for xen-devel@lists.xenproject.org; Tue, 13 Jan 2015 12:22:49 +0000 In-Reply-To: <1418305541-5135-4-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: > Use letter 't' to indicate a domain in such state. > > Signed-off-by: Vitaly Kuznetsov > --- > tools/libxl/libxl_types.idl | 1 + > tools/libxl/xl_cmdimpl.c | 2 +- > tools/python/xen/lowlevel/xl/xl.c | 1 + > 3 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl > index f7fc695..4a0e2be 100644 > --- a/tools/libxl/libxl_types.idl > +++ b/tools/libxl/libxl_types.idl > @@ -175,6 +175,7 @@ libxl_shutdown_reason = Enumeration("shutdown_reason", [ > (2, "suspend"), > (3, "crash"), > (4, "watchdog"), > + (5, "soft_reset"), Please add a LIBXL_HAVE_... define to libxl.h (LIBXL_HAVE_SHUTDWON_REASON_SOFT_RESET, I think). There are examples in there to copy (and a comment describing why etc). NB: xl and the python bindings are in tree and therefore you don't need to actually use this #define in the othyer two hunks, it's for 3rd party uses of libxl.