From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH v6 10/18] tools/libxl: export logdirty_init Date: Mon, 25 Jan 2016 14:01:10 -0500 Message-ID: <20160125190110.GP14977@char.us.oracle.com> References: <1451442548-26974-1-git-send-email-wency@cn.fujitsu.com> <1451442548-26974-11-git-send-email-wency@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1451442548-26974-11-git-send-email-wency@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: Wen Congyang Cc: Lars Kurth , Changlong Xie , Wei Liu , Ian Campbell , Andrew Cooper , Jiang Yunhong , Ian Jackson , xen devel , Dong Eddie , Gui Jianfeng , Shriram Rajagopalan , Yang Hongyang List-Id: xen-devel@lists.xenproject.org On Wed, Dec 30, 2015 at 10:29:00AM +0800, Wen Congyang wrote: > We need to enable logdirty on secondary, so we export logdirty_init > for internal use. Rename it to libxl__logdirty_init. > > Signed-off-by: Yang Hongyang > Signed-off-by: Wen Congyang > Acked-by: Ian Campbell Reviewed-by: Konrad Rzeszutek Wilk > --- > tools/libxl/libxl_dom_save.c | 4 ++-- > tools/libxl/libxl_internal.h | 2 ++ > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/tools/libxl/libxl_dom_save.c b/tools/libxl/libxl_dom_save.c > index 79e43f1..8e8d280 100644 > --- a/tools/libxl/libxl_dom_save.c > +++ b/tools/libxl/libxl_dom_save.c > @@ -44,7 +44,7 @@ static void switch_logdirty_xswatch(libxl__egc *egc, libxl__ev_xswatch*, > static void switch_logdirty_done(libxl__egc *egc, > libxl__logdirty_switch *lds, int rc); > > -static void logdirty_init(libxl__logdirty_switch *lds) > +void libxl__logdirty_init(libxl__logdirty_switch *lds) > { > lds->cmd_path = 0; > libxl__ev_xswatch_init(&lds->watch); > @@ -352,7 +352,7 @@ void libxl__domain_save(libxl__egc *egc, libxl__domain_save_state *dss) > } > > dss->rc = 0; > - logdirty_init(&dss->logdirty); > + libxl__logdirty_init(&dss->logdirty); > dss->logdirty.ao = ao; > > dsps->ao = ao; > diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h > index 552692f..8a429b7 100644 > --- a/tools/libxl/libxl_internal.h > +++ b/tools/libxl/libxl_internal.h > @@ -3083,6 +3083,8 @@ typedef struct libxl__logdirty_switch { > libxl__ev_time timeout; > } libxl__logdirty_switch; > > +_hidden void libxl__logdirty_init(libxl__logdirty_switch *lds); > + > struct libxl__domain_suspend_state { > /* set by caller of libxl__domain_suspend_init */ > libxl__ao *ao; > -- > 2.5.0 > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel