From: Wei Liu Subject: Re: [PATCH v4 --for 4.6 COLOPre 13/25] migration/save: pass checkpointed_stream from libxl to libxc Date: Thu, 16 Jul 2015 17:39:40 +0100 Message-ID: <20150716163940.GD12455@zion.uk.xensource.com> References: <1436946351-21118-1-git-send-email-yanghy@cn.fujitsu.com> <1436946351-21118-14-git-send-email-yanghy@cn.fujitsu.com> <1436963913.32371.37.camel@citrix.com> <55A749B9.80202@cn.fujitsu.com> <20150716161311.GA12455@zion.uk.xensource.com> <55A7D9F7.6090609@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: <55A7D9F7.6090609@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 Liu , Ian Campbell , wency@cn.fujitsu.com, andrew.cooper3@citrix.com, yunhong.jiang@intel.com, eddie.dong@intel.com, xen-devel@lists.xen.org, guijianfeng@cn.fujitsu.com, rshriram@cs.ubc.ca, Ian Jackson List-Id: xen-devel@lists.xenproject.org On Fri, Jul 17, 2015 at 12:21:11AM +0800, Yang Hongyang wrote: [...] > >>>Do (or will) specific non-zero values have any meaning to the libxc > >>>layer? i.e. does it have any knowledge of COLO vs. Remus as the libxl > >>>enum added in the last patch does? > >> > >>Yes, libxc side should be aware of the type of checkpointed_stream (Remus > >>or COLO). > >> > >>I think it is better to document the non-zero values here? > >>for example: > >> * @parm checkpointed_stream non-zero if the far end of the stream is using > >> * checkpointing > >> * 0 no checkpointed stream > >> * 1 Remus > >> * 2 COLO > >> > > > >These should be proper #defines instead of being buried in comments -- > >so that you can use them in code. > > Those defines are introduced later in the colo series, I will move them > here and follow Ian C's suggestion using XC_ prefix, or I can move this > patch down to colo series. > Either works for me. Wei.