From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2 6/6] libxl/save: Refactor libxl__domain_suspend_state Date: Tue, 16 Jun 2015 14:16:49 +0100 Message-ID: <1434460609.13744.145.camel@citrix.com> References: <1433318493-24561-1-git-send-email-yanghy@cn.fujitsu.com> <1433318493-24561-7-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: <1433318493-24561-7-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, eddie.dong@intel.com, wency@cn.fujitsu.com, andrew.cooper3@citrix.com, yunhong.jiang@intel.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, guijianfeng@cn.fujitsu.com, rshriram@cs.ubc.ca List-Id: xen-devel@lists.xenproject.org On Wed, 2015-06-03 at 16:01 +0800, Yang Hongyang wrote: > Currently struct libxl__domain_suspend_state contains 2 type of states, > one is save state, another is suspend state. This patch separate it out. "This patch separates those two out". > The motivation of this is that COLO will need to do suspend/resume > continuesly, we need a more common suspend state. "continuously" > After this change, dss stands for libxl__domain_save_state, > dsps stands for libxl__domain_suspend_state. > > Signed-off-by: Yang Hongyang > CC: Ian Campbell > CC: Ian Jackson > CC: Wei Liu > CC: Andrew Cooper I presume this is almost entirely mechanical and the compiler mostly took care of identifying everywhere to be changed: Acked-by: Ian Campbell [...] > @@ -2839,9 +2840,27 @@ typedef struct libxl__logdirty_switch { > } libxl__logdirty_switch; > > struct libxl__domain_suspend_state { [...] > +struct libxl__domain_save_state { Please could you add a little comment before each of these explaining their scope for the hard of thinking (i.e. me). One is the live phase and one is the final stop-and-copy phase, I think. Ian.