[Xen-devel] [PATCH] tools/ocaml: Add OCaml binding of virq bind

2018-09-27 Thread Yang Qian
1. Add a common bind virq function 2. Reduce the stub code of `bind_dom_exc_virq` Signed-off-by: Yang Qian --- tools/ocaml/libs/eventchn/xeneventchn.ml | 19 ++- tools/ocaml/libs/eventchn/xeneventchn.mli | 21 + tools/ocaml/libs/eventchn

[Xen-devel] [PATCH] tools/ocaml: Release the global lock before invoking block syscalls

2018-10-07 Thread Yang Qian
Functions related with event channel are parallelizable, so release global lock before invoking C function which will finally call block syscalls. Signed-off-by: Yang Qian --- tools/ocaml/libs/eventchn/xeneventchn_stubs.c | 30 +-- 1 file changed, 28 insertions(+), 2