The following series makes the libxl ocaml bindings somewhat more useful (for some small value of useful). As well as defining some of the more useful types in the bindings they switch to a model of long lived libxl contexts rather than per-call ones. This is necessary to use the stuff like events, signal handling etc. I got half way through implementing a useful binding for building a domain before I got distracted by other things, hence posting what I have. Most of the early part of the series could go in, the last couple of patches probably need more work. There are plenty of code paths here which have never been even slightly exercised. This is true of these bindings in general I think.
Hi Ian,> The following series makes the libxl ocaml bindings somewhat more useful > (for some small value of useful).Great timing: I am currently investigating how to port xenopsd/xapi to libxl (for XCP and XenServer), and have been playing with these bindings as well. I indeed noticed a few shortcomings and omissions.> As well as defining some of the more useful types in the bindings they > switch to a model of long lived libxl contexts rather than per-call ones. This > is necessary to use the stuff like events, signal handling etc.I think that is a good idea.> I got half way through implementing a useful binding for building a domain > before I got distracted by other things, hence posting what I have. Most of > the early part of the series could go in, the last couple of patches probably > need more work. > > There are plenty of code paths here which have never been even slightly > exercised. This is true of these bindings in general I think.I''ll use your patches as a base for my own improvements to the bindings. Thanks for releasing these. Cheers, Rob
Ian Campbell
2012-Nov-26 15:35 UTC
Re: [PATCH 00 of 15] libxl: ocaml: improve the bindings
On Mon, 2012-11-26 at 14:01 +0000, Rob Hoes wrote:> Hi Ian, > > > The following series makes the libxl ocaml bindings somewhat more useful > > (for some small value of useful). > > Great timing: I am currently investigating how to port xenopsd/xapi to > libxl (for XCP and XenServer),Awesome!> and have been playing with these bindings as well. I indeed noticed a > few shortcomings and omissions.Hopefully they are somewhat fewer in number after this series ;-) [...]> I''ll use your patches as a base for my own improvements to the bindings. Thanks for releasing these.Cool, let me know if you have any trouble or I can do anything (the binding generator is a bit of a beast for example). Ian.
Ian Campbell
2012-Nov-26 15:36 UTC
Re: [PATCH 00 of 15] libxl: ocaml: improve the bindings
On Mon, 2012-11-26 at 14:01 +0000, Rob Hoes wrote:> I''ll use your patches as a base for my own improvements to the bindings.BTW, I''d happily commit any which you care to attach an "Acked-by" to. Ian.