From mboxrd@z Thu Jan 1 00:00:00 1970 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:10:40 +0100 Message-ID: <20150716161040.GZ12455@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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1436946351-21118-14-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, 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 Wed, Jul 15, 2015 at 03:45:39PM +0800, Yang Hongyang wrote: > Pass checkpointed_stream from libxl to libxc. > It won't affact legacy migration because legacy migration > won't use this param. > > Signed-off-by: Yang Hongyang > CC: Ian Campbell > CC: Ian Jackson > CC: Wei Liu > CC: Andrew Cooper > --- [...] > > + if (dss->checkpointed_stream && !r_info) { Please explicitly check for _NONE type instead of relying it of being 0. Arguably the actual value is not going to change in the future but it's better to be explicit. Wei. > + LOG(ERROR, "Migration stream is checkpointed, but there's no " > + "checkpoint info!"); > + goto out; > + } > + > dss->rc = 0; > logdirty_init(&dss->logdirty); > dsps->ao = ao;