From: Ian Campbell Subject: Re: [PATCH 09/19] libxl: suspend: Async libxl__domain_suspend_callback Date: Thu, 13 Mar 2014 16:58:31 +0000 Message-ID: <1394729911.16364.16.camel@kazak.uk.xensource.com> References: <1393945016-1417-1-git-send-email-ian.jackson@eu.citrix.com> <1393945016-1417-10-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1393945016-1417-10-git-send-email-ian.jackson@eu.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 Jackson Cc: Shriram Rajagopalan , xen-devel@lists.xensource.com, Lai Jiangshan , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Tue, 2014-03-04 at 14:56 +0000, Ian Jackson wrote: > Mark the suspend callback libxl__domain_suspend_callback as > asynchronous in the helper stub generator (libxl_save_msgs_gen.pl). > We are going to want to provide an asynchronous version of this > function to get rid of the usleeps and waiting loops in the suspend > code. > > libxl__domain_suspend_common_callback, the common synchronous core, > which used to be provided directly as the callback function for the > helper machinery, becomes libxl__domain_suspend_callback_common. It > can now take a typesafe parameter. > > For now, provide two two == remus & regular? > very similar asynchronous wrappers for it. Each > is a simple function which contains only boilerplate, calls the common > synchronous core, and returns the asynchronous response. > > Essentially, we have just moved (in the case of suspend callbacks) the > call site of libxl__srm_callout_callback_complete. Do you mean libxl__srm_callout_sendreply here? > It was in the > switch statement in the autogenerated _libxl_save_msgs_callout.c, and > is now in the handwritten libxl_dom.c. > > No functional change. > > Signed-off-by: Ian Jackson > Cc: Shriram Rajagopalan