[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-devel] [PATCH v2-resend 00/30] libxl: ocaml: improve the bindings
This is a repost of version 2 of this patch series to fix the OCaml binding to
libxl.
I believe I have addressed all the points raised by Dave Scott and Ian
Campbell. Sorry for the delay in getting this new series out!
The main changes are:
* Several fixes to ensure the bindings play well with the OCaml GC. This
includes properly using macros such as CAMLparam* and CAMLreturn* for _all_
OCaml values (even intermediate ones), and using "custom" blocks to encapsulate
pointers to C code (including handy "finalize" functions for cleanup.
* Fixes in the way KeyedUnions are handled.
* Use the libxl init function to generate default records for libxl types.
* Improve the functions that deal with event handling. We now have some
higher-level functions to makes this easier as well as safer, and errors are
translated properly.
---------
The following series of patches fill in most of the gaps in the OCaml bindings
to libxl, to make them useful for clients such as xapi/xenopsd (from XCP).
There are a number of bugfixes to the existing bindings as well. I have an
experimental version of xenopsd that successfully uses the new bindings.
An earlier version of the first half of the series was submitted to the last by
Ian Campbell on 20 Nov 2012. With his permission, I have updated most of them
to fix some issues (which were discussed on the mailing list at the time). I
have left Ian's signed-off-by line on those patches (please let me know if that
is not appropriate).
For convenience, the patches in this series may be pulled using:
git pull git://github.com/robhoes/xen.git hydrogen-upstream-v2-rebased
Cheers,
Rob
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|