From: Ian Jackson Subject: Re: [PATCH v5 03/12] libxl: ocaml: event management Date: Thu, 28 Nov 2013 16:50:21 +0000 Message-ID: <21143.29773.537380.159887@mariner.uk.xensource.com> References: <1385488371-28875-1-git-send-email-rob.hoes@citrix.com> <1385488371-28875-4-git-send-email-rob.hoes@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385488371-28875-4-git-send-email-rob.hoes@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: Rob Hoes Cc: dave.scott@eu.citrix.com, ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Rob Hoes writes ("[PATCH v5 03/12] libxl: ocaml: event management"): > Having bindings to the low-level functions libxl_osevent_register_hooks and > related, allows to run an event loop in OCaml; either one we write ourselves, > or one that is available elsewhere. > > The Lwt cooperative threads library (http://ocsigen.org/lwt/), which is quite > popular these days, has an event loop that can be easily extended to poll any > additional fds that we get from libxl. Lwt provides a "lightweight" threading > model, which does not let you run any other (POSIX) threads in your > application, and therefore excludes an event loop implemented in the C > bindings. Subject to my comments on with the locking change patch, I think this one is OK _if that patch goes in as well_. Formally speaking that means I shouldn't ack this patch, because partial application of a series is supposed to still leave the tree correct. Or to put it another way, it's a bit odd to find that this patch introduces wrong code which is to be fixed up later. Having said that, I don't think much would be served by asking you to transpose these patches at this stage, even though it would be preferable. And I have no other problems with this. So: CONDITIONAL Acked-by: Ian Jackson The condition is that "libxl: ocaml: drop the ocaml heap lock before calling into libxl" is committed and pushed simultaneously. Ian.