Skip to content

Some cleanup of libxl JSON handling

Elliott Mitchell xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tools/libxl: Mark pointer args of many functions constanttools/include/libxl_json.h tools/libs/light/gentypes.py tools/libs/light/libxl_cpuid.c +4 more+59 -560 replies
2/5tools/xl: Mark libxl_domain_config * arg of printf_info_*() consttools/xl/xl.h tools/xl/xl_info.c tools/xl/xl_sxp.c+6 -60 replies
3/5tools/libxl: Tiny optimization of libxl__mac_is_default()tools/libs/light/libxl_internal.c+2 -20 replies
4/5tools/xl: Rename printf_info()/list_domains_details() to dump_by_...()tools/xl/xl.h tools/xl/xl_info.c tools/xl/xl_misc.c+26 -160 replies
5/5tools/xl: Merge down debug/dry-run section of create_domain()tools/xl/xl_vmcontrol.c+1 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Some cleanup of libxl JSON handling

Another batch which has been hanging around for a while and never submitted. Here the observation is most of the data passed to the JSON libraries aren't modified. Marking the arguments to the functions as constant is correct and makes the API rather similar to the one used for "SXP". Once that is done some more merging is possible.

There seems to be a bit of a difference in how the interface for libjson-c is formatted versus the libyajl variant. I've left it similar to how it appeared to be done, but that looks a bit odd. If there is a desire for linebreaks and indentation feel free.

This has been rebased for the new libjson-c library. Only difference was needing to add some duplicate hunks for the new library.

Elliott Mitchell (5):
tools/libxl: Mark pointer args of many functions constant tools/xl: Mark libxl_domain_config * arg of printf_info_*() const tools/libxl: Tiny optimization of libxl__mac_is_default() tools/xl: Rename printf_info()/list_domains_details() to dump_by_...() tools/xl: Merge down debug/dry-run section of create_domain()

 tools/include/libxl_json.h        | 38 ++++++++++++++++---------------
 tools/libs/light/gentypes.py      | 12 +++++-----
 tools/libs/light/libxl_cpuid.c    |  7 +++---
 tools/libs/light/libxl_internal.c |  8 +++----
 tools/libs/light/libxl_internal.h | 18 +++++++--------
 tools/libs/light/libxl_json.c     | 33 ++++++++++++++-------------
 tools/libs/light/libxl_nocpuid.c  |  4 ++--
 tools/xl/xl.h                     | 13 +++++++----
 tools/xl/xl_info.c                | 33 +++++++++++++++------------
 tools/xl/xl_misc.c                |  2 +-
 tools/xl/xl_sxp.c                 |  6 ++---
 tools/xl/xl_vmcontrol.c           | 14 +-----------
 12 files changed, 95 insertions(+), 93 deletions(-)
Signature · 1 line
2.47.3