From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v1 3/5] tools/libxl: move remus codes into libxl_remus.c Date: Tue, 2 Jun 2015 15:46:49 +0100 Message-ID: <1433256409.15036.294.camel@citrix.com> References: <1432116090-19486-1-git-send-email-yanghy@cn.fujitsu.com> <1432116090-19486-4-git-send-email-yanghy@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1432116090-19486-4-git-send-email-yanghy@cn.fujitsu.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: Yang Hongyang Cc: wei.liu2@citrix.com, wency@cn.fujitsu.com, andrew.cooper3@citrix.com, yunhong.jiang@intel.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, rshriram@cs.ubc.ca List-Id: xen-devel@lists.xenproject.org On Wed, 2015-05-20 at 18:01 +0800, Yang Hongyang wrote: > move remus codes into libxl_remus.c "code" Apart from dropping some "static" and adding some prototypes to the header this is purely motion, correct? (I assume this about the last one too). > diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h > index b2eeb89..c3d70eb 100644 > --- a/tools/libxl/libxl_internal.h > +++ b/tools/libxl/libxl_internal.h > @@ -2815,6 +2815,7 @@ _hidden void libxl__remus_devices_commit(libxl__egc *egc, > libxl__remus_devices_state *rds); > _hidden int libxl__netbuffer_enabled(libxl__gc *gc); > > + Please avoid spurious whitespace changes. > /*----- Domain suspend (save) state structure -----*/ > > typedef struct libxl__domain_suspend_state libxl__domain_suspend_state; > @@ -3197,6 +3198,16 @@ void libxl__domain_suspend_callback(void *data); > void libxl__domain_suspend(libxl__egc *egc, > libxl__domain_suspend_state *dss); > > +/* Remus callbacks for save */ > +void libxl__remus_domain_suspend_callback(void *data); > +void libxl__remus_domain_resume_callback(void *data); > +void libxl__remus_domain_checkpoint_callback(void *data); > +/* Remus setup and teardown*/ > +void libxl__remus_setup(libxl__egc *egc, libxl__domain_save_state *dss); > +void libxl__remus_teardown(libxl__egc *egc, > + libxl__domain_save_state *dss, > + int rc); Please mark these all _hidden.