xenstore: reduce use of unsafe conversions
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ocaml/libs/xb: use bytes in place of strings for mutable bufferstools/ tools/ tools/ | +13 | 0 replies | |
| 2/2 | ocaml/xenstored: reduce use of unsafe conversionstools/ tools/ tools/ | +11 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Juergen Gross |
|---|---|
| Series | Release-acked-by |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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