From: Ian Campbell Subject: Re: [PATCH 16/19] libxl: suspend: Abolish usleeps in domain suspend wait Date: Mon, 17 Mar 2014 09:55:30 +0000 Message-ID: <1395050130.4122.25.camel@kazak.uk.xensource.com> References: <1393945016-1417-1-git-send-email-ian.jackson@eu.citrix.com> <1393945016-1417-17-git-send-email-ian.jackson@eu.citrix.com> <1394730989.16364.29.camel@kazak.uk.xensource.com> <21281.63755.904249.422991@mariner.uk.xensource.com> <1394791838.16364.82.camel@kazak.uk.xensource.com> <21283.15406.21986.273382@mariner.uk.xensource.com> <21283.16192.903777.170002@mariner.uk.xensource.com> <1394819200.6065.32.camel@kazak.uk.xensource.com> <21283.18279.671068.999393@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21283.18279.671068.999393@mariner.uk.xensource.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 Jackson Cc: Shriram Rajagopalan , xen-devel@lists.xensource.com, Lai Jiangshan , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 2014-03-14 at 18:16 +0000, Ian Jackson wrote: > I think it's marginally clearer separately and there's no point > folding it in. OK. [...] > From d337d7cf831360b0e7ed8f672db6b2559d063271 Mon Sep 17 00:00:00 2001 > From: Ian Jackson > Date: Fri, 6 Dec 2013 16:12:44 +0000 > Subject: [PATCH 18/21] libxl: suspend: Abolish usleeps in domain suspend wait > > Replace the use of a loop with usleep(). > > Instead, use an xswait xenstore watch with timeout. (xenstore fires > watches on @releaseDomain when a domain shuts down.) > > The logic which checks for the state of the domain is unchanged, and > not ideal, but we will leave that for the next patch. > > There is not intended to be any semantic change, other than to make > the algorithm properly asynchronous and the consequential waiting be > on xenstore, rather than polling. > > Signed-off-by: Ian Jackson > CC: Stefano Stabellini Acked-by: Ian Campbell