From: Ian Jackson Subject: Re: [PATCH 03/10 V7] tools/libxl: introduce a new structure libxl__remus_state Date: Mon, 3 Mar 2014 16:38:40 +0000 Message-ID: <21268.45072.716571.399207@mariner.uk.xensource.com> References: <1392023972-24675-1-git-send-email-laijs@cn.fujitsu.com> <1392023972-24675-4-git-send-email-laijs@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1392023972-24675-4-git-send-email-laijs@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: Lai Jiangshan Cc: Ian Campbell , FNST-Wen Congyang , Stefano Stabellini , Andrew Cooper , Jiang Yunhong , Dong Eddie , xen-devel@lists.xen.org, Shriram Rajagopalan , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org Lai Jiangshan writes ("[PATCH 03/10 V7] tools/libxl: introduce a new structure libxl__remus_state"): > libxl_domain_remus_info only contains the argument of the command > 'xl remus'. So introduce a new structure libxl__remus_state to save > the remus state. I appreciate that you've probably split this up to try to make the review easier, but I think there would probably be a way to do this that made the patches make more sense when reviewed in isolation. For this one: > + /* convenience shorthand */ > + libxl__remus_state *remus_state = dss->remus_state; > + remus_state->blackhole = info->blackhole; > + remus_state->interval = info->interval; > + remus_state->compression = info->compression; > + remus_state->dss = dss; > + libxl__ev_child_init(&remus_state->child); AFAICT the main point of this patch seems to be to copy a bunch of configuration options from libxl_domain_remus_start's info argument into dss->remus_state. I don't understand why this is desirable. Does the info argument not have a sufficient lifetime ? Thanks, Ian.