Skip to content

xenstore: reduce use of unsafe conversions

Marcello Seri xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ocaml/libs/xb: use bytes in place of strings for mutable bufferstools/ocaml/libs/xb/xb.ml tools/ocaml/libs/xb/xb.mli tools/ocaml/libs/xb/xs_ring.ml+13 -130 replies
2/2ocaml/xenstored: reduce use of unsafe conversionstools/ocaml/xenstored/logging.ml tools/ocaml/xenstored/stdext.ml tools/ocaml/xenstored/utils.ml+11 -160 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchJuergen Gross
SeriesRelease-acked-by
1/2
2/2

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

Read the v1 thread

Cover letter [PATCH for-4.11 0/2] xenstore: reduce use of unsafe conversions

When xenstore was updated to support safe-string, some unnecessary copies were introduced. A further patch reduced the copies at the price of many calls to unsafe conversions between bytes and strings. In the port we also did not notice that some C stubs were still incorrectly using ocaml strings as mutable payload.

This set of patches updates the C stubs that use mutable payloads passed from ocaml, and reduces the amount of unsafe conversions where possible without further increasing the number of copies.

This seems also to fix some unclear instabilities that appeared after the former patch introducing the unsafe conversion with some version of the ocaml compiler.

Marcello Seri (2):
ocaml/libs/xb: use bytes in place of strings for mutable buffers ocaml/xenstored: reduce use of unsafe conversions

 tools/ocaml/libs/xb/xb.ml        | 12 +++++-------
 tools/ocaml/libs/xb/xb.mli       |  2 +-
 tools/ocaml/libs/xb/xs_ring.ml   | 12 +++++++-----
 tools/ocaml/xenstored/logging.ml | 16 ++++++----------
 tools/ocaml/xenstored/stdext.ml  |  2 +-
 tools/ocaml/xenstored/utils.ml   |  9 ++++-----
 6 files changed, 24 insertions(+), 29 deletions(-)
Signature · 7 lines
2.17.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel