|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [PATCH] ocaml: xc bindings: use libxenctrl and libxengue
On 10/09/10 11:10, Ian Campbell wrote:
# HG changeset patch
# User Ian Campbell<ian.campbell@xxxxxxxxxx>
# Date 1284113402 -3600
# Node ID c2610f86abfb2c34a5a653dea29d5518fb355628
# Parent 8a710e0eb0881cad6156500bd4cedcebc7824a18
ocaml: xc bindings: use libxenctrl and libxenguest
Now that tools/libxc is licensed under LGPL I don't think there is any
need for an LGPL reimplementation under tools/ocaml.
For the most part the conversion to the up-to-date libxc API (xc_lib.c
essentially implemented the same interface as an older libxc) was
pretty automatic. There are some functions which appear to no longer
exist in libxc which I therefore simply removed the bindings for and a
small number of interfaces which had changed.
Many of the functions bound by the stubs have no in-tree users (which
I think is fine for a language binding) so I have no way to confirm
correctness other than by eye. I was however able to confirm that
oxenstored still worked.
I can't say, i'm particularly thrilled by this patch.
on one hand, it renders oxenstored runnable on netbsd for example and
merge libxc into one.
on the other hand, it's a pretty big change and done only "one-sidedly":
- lose the logging improvement over libxenctrl version.
- some bindings get lost, need to adapt all clients.
- introduce pthread functions in the ocaml stack, which as discussed in
the past, might be a dealkiller, but unfortunately very hard to test.
- almost completely not tested patch.
oxenstored won't be affected much by all this, since it's using only a
tiny part of xc, but i suspect it might be a big deal for XCP and such,
and thus i wonder if XCP is going to use this version of xc (which was
the goal when merging those libraries alongside oxenstored). it would
probably be easier to test this in XCP first, since there's a
comprehensive test suite there.
--
Vincent
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|