From: Ian Jackson Subject: Re: [PATCH v18 02/11] libxl: add support for async. function calls when using libxl__ao_device Date: Tue, 29 Jul 2014 18:24:55 +0100 Message-ID: <21463.55527.752884.372747@mariner.uk.xensource.com> References: <1406539445-12708-1-git-send-email-yanghy@cn.fujitsu.com> <1406539445-12708-3-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: <1406539445-12708-3-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: laijs@cn.fujitsu.com, wency@cn.fujitsu.com, andrew.cooper3@citrix.com, yunhong.jiang@intel.com, eddie.dong@intel.com, xen-devel@lists.xen.org, rshriram@cs.ubc.ca, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Yang Hongyang writes ("[PATCH v18 02/11] libxl: add support for async. function calls when using libxl__ao_device"): > Extend libxl__ao_device with a libxl__ev_child member, which can be > used to asynchronously execute functions that take a long time to complete. The code change is fine. I think the commit message and the comment should explain that this member is used only for syscalls where only a synchronous version is provided. How about Extend libxl__ao_device with a libxl__ev_child member. This can be used to fork children to allow the asynchronous execution of system calls which only come in a synchronous variant. This will be useful for Remus, in the following patches. instead ? > + /* for executing functions asynchronously */ > + libxl__ev_child child; And + /* for asynchronous execution of synchronous-only syscalls etc. */ Thanks, Ian.