libxl: ocaml: allocate a long lived libxl context.
authorRob Hoes <rob.hoes@citrix.com>
Wed, 6 Nov 2013 17:49:44 +0000 (17:49 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 11 Nov 2013 15:38:26 +0000 (15:38 +0000)
commita45685daa13d0dc6555200f9beb038fbabf211ec
tree834dde5a5d48a1d5d7ccb68ce2b88e080a0b10ff
parent65e35eb12447eb0c7343a1286f5c80138b5e5c84
libxl: ocaml: allocate a long lived libxl context.

Rather than allocating a new context for every libxl call begin to
switch to a model where a context is allocated by the caller and may
then be used for multiple calls down into the library.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Acked-by: David Scott <dave.scott@eu.citrix.com>
tools/ocaml/libs/xl/META.in
tools/ocaml/libs/xl/Makefile
tools/ocaml/libs/xl/xenlight.ml.in
tools/ocaml/libs/xl/xenlight.mli.in
tools/ocaml/libs/xl/xenlight_stubs.c