From: Ian Campbell Subject: Re: [PATCH v1 12/12] libxl: add device backend listener in order to launch backends Date: Tue, 12 Nov 2013 15:29:51 +0000 Message-ID: <1384270191.10204.49.camel@kazak.uk.xensource.com> References: <1380705874-58491-1-git-send-email-roger.pau@citrix.com> <1380705874-58491-13-git-send-email-roger.pau@citrix.com> <21105.15127.428243.701439@mariner.uk.xensource.com> <5277D362.4040300@citrix.com> <21111.55145.501074.162529@mariner.uk.xensource.com> <21111.57474.653370.258557@mariner.uk.xensource.com> <1383819735.26213.150.camel@kazak.uk.xensource.com> <21115.49505.48339.985424@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VgFwg-0001Og-9m for xen-devel@lists.xenproject.org; Tue, 12 Nov 2013 15:32:02 +0000 In-Reply-To: <21115.49505.48339.985424@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: xen-devel@lists.xenproject.org, Roger Pau =?ISO-8859-1?Q?Monn=E9?= List-Id: xen-devel@lists.xenproject.org On Thu, 2013-11-07 at 16:35 +0000, Ian Jackson wrote: > Ian Campbell writes ("Re: [PATCH v1 12/12] libxl: add device backend listener in order to launch backends"): > > On Mon, 2013-11-04 at 17:59 +0000, Ian Jackson wrote: > > > + assert(parent->magic == LIBXL__AO_MAGIC); > > > > Is the intention to allow multiple levels of nesting or would it be a > > good idea to have an assert(!parent->nested) here? > > I don't think there is anything wrong with multiple levels of nesting > although I'm hoping no-one will find a use for it! Indeed! > > In either case it would be good to be explicit in the comment, either > > here or in the header. > > Sure. OK. I trust you will write something sensible, so here is a preemptive: Acked-by: Ian Campbell Use it wisely ;-) > [...] > If there is no first-class ao running, then nothing might be running > the libxl event loop and the "escaped" sub-ao might never make > progress. > > So the requirement is there to stop people writing a broken daemonic > sub-ao (ie, one which outlives its parent). It's slightly stricter > than the actual requirement for correctness, which is that _some_ ao > must still continue. But I'm hoping that no-one wants to have some > more complicated semantic relationship between a sub-ao and the > system's real ao's than parenthood. Makes sense. Ian