tools/ocaml: build/compatibility fixes with OCaml 5.0 for Xen 4.17
Get series with b4
b4 am [email protected]Versions newest first
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | tools/ocaml/Makefile.rules: do not run ocamldep on distcleantools/ | +1 | 0 replies | |
| 2/5 | tools/ocaml/Makefile.rules: hide -include on *cleantools/ | +2 | 0 replies | |
| 3/5 | tools/ocaml/libs/eventchn: do not leak event channels and OCaml 5.0 compattools/ | +27 | 0 replies | |
| 4/5 | tools/ocaml/libs/xc: OCaml 5.0 compatibilitytools/ | +6 | 3 replies | |
| 5/5 | tools/ocaml/libs/{xb, mmap}: use Data_abstract_val wrappertools/ tools/ | +2 | 0 replies |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Christian Lindig |
|---|---|
| 1/5 | |
| 2/5 | |
| 3/5 | A-b |
| 4/5 | A-b |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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