From: Wei Liu Subject: Re: [PATCH v10 11/11] (lib)xl: soft reset support Date: Tue, 1 Sep 2015 18:30:52 +0100 Message-ID: <20150901173052.GI27353@zion.uk.xensource.com> References: <1438090096-8297-1-git-send-email-vkuznets@redhat.com> <1438090096-8297-12-git-send-email-vkuznets@redhat.com> <20150831141417.GF22586@zion.uk.xensource.com> <87egiidp9i.fsf@vitty.brq.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 1ZWpOi-0001Pu-KS for xen-devel@lists.xenproject.org; Tue, 01 Sep 2015 17:31:04 +0000 Content-Disposition: inline In-Reply-To: <87egiidp9i.fsf@vitty.brq.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: Andrew Jones , Julien Grall , Wei Liu , Ian Campbell , Stefano Stabellini , Andrew Cooper , Ian Jackson , Olaf Hering , Tim Deegan , David Vrabel , Jan Beulich , xen-devel@lists.xenproject.org, Daniel De Graaf , Keir Fraser List-Id: xen-devel@lists.xenproject.org On Tue, Sep 01, 2015 at 07:26:49PM +0200, Vitaly Kuznetsov wrote: > Wei Liu writes: > > > [...] > >> diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl > >> index 9f6ec00..87d8255 100644 > >> --- a/tools/libxl/libxl_types.idl > >> +++ b/tools/libxl/libxl_types.idl > >> @@ -138,6 +138,8 @@ libxl_action_on_shutdown = Enumeration("action_on_shutdown", [ > >> > >> (5, "COREDUMP_DESTROY"), > >> (6, "COREDUMP_RESTART"), > >> + > > > > Stray blank line. > > > > Actually, we already have a number of blank lines here (to group similar > actions I think), e.g. between 1 and 2, 3 and 4, 4 and 5 so I'm kinda > following the convention :-) Do you think we need to remove them all or > is 'SOFT_RESET' a bit special and belongs to the 'COREDUMP*' group? > Oh right, in that case you can leave your blank line in place. Sorry for not noticing that earlier. > >> + (7, "SOFT_RESET"), > >> ], init_val = "LIBXL_ACTION_ON_SHUTDOWN_DESTROY") > >> > >> libxl_trigger = Enumeration("trigger", [ > >> diff --git a/tools/libxl/xl.h b/tools/libxl/xl.h > >> index 6c19c0d..0021112 100644 > >> --- a/tools/libxl/xl.h > >> +++ b/tools/libxl/xl.h > >> @@ -194,6 +194,7 @@ typedef enum { > >> DOMAIN_RESTART_NONE = 0, /* No domain restart */ > >> DOMAIN_RESTART_NORMAL, /* Domain should be restarted */ > >> DOMAIN_RESTART_RENAME, /* Domain should be renamed and restarted */ > >> + DOMAIN_RESTART_SOFT_RESET, /* Soft reset should be performed */ > >> } domain_restart_type; > >> > >> extern void printf_info_sexp(int domid, libxl_domain_config *d_config, FILE *fh); > >> diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c > >> index 2e9e1bd..0b29d34 100644 > >> --- a/tools/libxl/xl_cmdimpl.c > >> +++ b/tools/libxl/xl_cmdimpl.c > >> @@ -133,6 +133,8 @@ static const char *action_on_shutdown_names[] = { > >> > >> [LIBXL_ACTION_ON_SHUTDOWN_COREDUMP_DESTROY] = "coredump-destroy", > >> [LIBXL_ACTION_ON_SHUTDOWN_COREDUMP_RESTART] = "coredump-restart", > >> + > > > > Stray blank line. > > > > Same here (for same reasons I suppose). > Ditto. Wei. > [...] > > -- > Vitaly