From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yang Hongyang Subject: Re: [PATCH v4 --for 4.6 COLOPre 06/25] libxl/remus: introduce libxl__remus_teardown Date: Thu, 16 Jul 2015 09:43:48 +0800 Message-ID: <55A70C54.1070006@cn.fujitsu.com> References: <1436946351-21118-1-git-send-email-yanghy@cn.fujitsu.com> <1436946351-21118-7-git-send-email-yanghy@cn.fujitsu.com> <1436961566.32371.18.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1436961566.32371.18.camel@citrix.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: Ian Campbell Cc: wei.liu2@citrix.com, 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 07/15/2015 07:59 PM, Ian Campbell wrote: > On Wed, 2015-07-15 at 15:45 +0800, Yang Hongyang wrote: >> introduce libxl__remus_teardown to teardown Remus devices. >> >> Signed-off-by: Yang Hongyang > > Acked-by: Ian Campbell > > If you need to respin then you might consider inverting the if remus > check in domain_suspend_done and calling this new function if true, e.g. > > if (dss->remus) { > libxl__remus_teardown(...) > return; > } > > dss->callback(egc, dss, rc); > > I think the control flow would feel more natural then. will do, thanks! > > > . > -- Thanks, Yang.