From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: Re: [PATCH v2 6/6] libxl/save: Refactor libxl__domain_suspend_state Date: Tue, 16 Jun 2015 14:26:55 +0100 Message-ID: <21888.9247.154714.434878@mariner.uk.xensource.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, ian.campbell@citrix.com, wency@cn.fujitsu.com, andrew.cooper3@citrix.com, yunhong.jiang@intel.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, eddie.dong@intel.com, guijianfeng@cn.fujitsu.com, rshriram@cs.ubc.ca List-Id: xen-devel@lists.xenproject.org Yang Hongyang writes ("[PATCH v2 6/6] libxl/save: Refactor libxl__domain_suspend_state"): > Currently struct libxl__domain_suspend_state contains 2 type of states, > one is save state, another is suspend state. This patch separate it out. > The motivation of this is that COLO will need to do suspend/resume > continuesly, we need a more common suspend state. Currently in libxl/libxc/etc. "suspend" and "save" have referred to the same thing, but different terminology has been used at different layers. Ie both "suspend" and "save" each refer to either or both of "save to disk" or "suspend for live migrate", or to the relevant underlying mechanisms. So I'm not sure introducing a distinction between those two terms in libxl is really helpful. If it is to be done there should be a clear explanation of what the difference is. On IRC you said: 14:21 Diziet, currently, in libxl, suspend is used as 2 means, one is save(corrspond to libxc save), another is suspend the guest(related to suspend callback) That's rather different, I think. Or, at least, I'm not sure that I understand this distinction as you are making it. The suspend callback is part of the implementation of what at higher layers we save/suspend/restore/migration. AIUI this callback is related to pausing the guest, or manipulating its VCPUs ? Perhaps we should rename this callback ? Maybe Andrew Cooper can suggest a name ? Forgive me if I'm confused and going off in the wrong direction... Thanks, Ian.