From mboxrd@z Thu Jan 1 00:00:00 1970 From: Euan Harris Subject: Re: Cancelling asynchronous operations in libxl Date: Wed, 28 Jan 2015 16:13:44 +0000 Message-ID: <20150128161342.GA32398@citrix.com> References: <0D156F8A-5D32-4559-8AD0-5E6AE3E21745@citrix.com> <21694.33920.188447.567330@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21694.33920.188447.567330@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: Dave Scott , Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org Hi, On Tue, Jan 20, 2015 at 04:38:24PM +0000, Ian Jackson wrote: > * Is an API along these lines going to meet your needs ? The API you propose for libxl_ao_cancel, as described in the comment in libxl.h, looks reasonable to us. The comment for ERROR_NOTIMPLEMENTED is a bit confusing: under what circumstances might a task actually be cancelled although libxl_ao_cancel returned ERROR_NOTIMPLEMENTED? > * Can you help me test it ? Trying to test this in xl is going to be > awkward and involve a lot of extraneous and very complicated signal > handling; and AFAIAA libvirt doesn't have any cancellation > facility. Yes, of course. However, wouldn't it also be useful for xl to gain the ability to cancel long-running operations by handling SIGINT? > * Any further comments (eg, re timescales etc). None that we can think of at the moment. Thanks, Euan