Skip to content

tools/ocaml: build/compatibility fixes with OCaml 5.0 for Xen 4.17

Edwin Török xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 3 repliesIn review

Changes to previous series from the cover letter

* removed Dune patches from this series for now (that requires more work to work with osstest on Debian oldstable that won't be ready in time for 4.17)
* also updated xenctrl to work with no naked pointers mode (the only mode in OCaml 5.0)
* changed alloc_custom to use '0' and '1' instead of '1' and '128' for values that are singletons anyway

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tools/ocaml/Makefile.rules: do not run ocamldep on distcleantools/ocaml/Makefile.rules+1 -10 replies
2/5tools/ocaml/Makefile.rules: hide -include on *cleantools/ocaml/Makefile.rules+2 -20 replies
3/5tools/ocaml/libs/eventchn: do not leak event channels and OCaml 5.0 compattools/ocaml/libs/eventchn/xeneventchn_stubs.c+27 -20 replies
4/5tools/ocaml/libs/xc: OCaml 5.0 compatibilitytools/ocaml/libs/xc/xenctrl_stubs.c+6 -53 replies
5/5tools/ocaml/libs/{xb, mmap}: use Data_abstract_val wrappertools/ocaml/libs/mmap/xenmmap_stubs.c tools/ocaml/libs/xb/xs_ring_stubs.c+2 -20 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchChristian Lindig
1/5
2/5
3/5A-b
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] tools/ocaml: build/compatibility fixes with OCaml 5.0 for Xen 4.17

Changes to previous series:
* removed Dune patches from this series for now (that requires more work to work with osstest on Debian oldstable that won't be ready in time for 4.17)
* also updated xenctrl to work with no naked pointers mode (the only mode in OCaml 5.0)
* changed alloc_custom to use '0' and '1' instead of '1' and '128' for values that are singletons anyway

This can be tested with OCaml <5.0 (e.g. 4.13 or 4.14) with --enable-naked-pointer-checker to find instances where naked pointers are used or by code review.
(Note that OCaml 5.0 won't have support for naked pointers at all, and thus it doesn't have the checker either)

It would be good to get this included in Xen 4.17, especially that it changes the internal ABI of xenctrl bindings.

Edwin Török (5):
tools/ocaml/Makefile.rules: do not run ocamldep on distclean tools/ocaml/Makefile.rules: hide -include on *clean tools/ocaml/libs/eventchn: do not leak event channels and OCaml 5.0
compat
tools/ocaml/libs/xc: OCaml 5.0 compatibility tools/ocaml/libs/{xb, mmap}: use Data_abstract_val wrapper

 tools/ocaml/Makefile.rules                    |  4 +--
 tools/ocaml/libs/eventchn/xeneventchn_stubs.c | 29 +++++++++++++++++--
 tools/ocaml/libs/mmap/xenmmap_stubs.c         |  2 +-
 tools/ocaml/libs/xb/xs_ring_stubs.c           |  2 +-
 tools/ocaml/libs/xc/xenctrl_stubs.c           | 11 +++----
 5 files changed, 37 insertions(+), 11 deletions(-)
Signature · 1 line
2.34.1