Skip to content

Some misc from my tree

Elliott Mitchell xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesIn review

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+40 -363 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+5 -51 reply
3/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+25 -181 reply
4/5tools/xl: Merge down debug/dry-run section of create_domain()tools/xl/xl_vmcontrol.c+1 -131 reply
5/5tools/xl: Fix potential deallocation bugtools/xl/xl_info.c+1 -13 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchLuca Fancellu
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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 0/5] Some misc from my tree

Some bits I had run across when looking at a piece of libxl.

Even though the purpose of the functions suggests they won't modify the memory passed in via pointer, marking them constant provides better reassurance.

While list_domains_details() and printf_info() had similar purposes their interfaces were wildly different. Make them more consistent. I was aiming to turn dump_by_dominfo_list() into a wrapper around dump_by_config(), but didn't quite get there.

Having the functions named "printf" is wrong. They are generating output in a fixed format, there is no control over the format. That is a write or dump operation, not a formatted print.

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

 tools/include/libxl_json.h        | 22 +++++++++++---------
 tools/libs/light/gentypes.py      |  8 ++++----
 tools/libs/light/libxl_cpuid.c    |  2 +-
 tools/libs/light/libxl_internal.c |  4 ++--
 tools/libs/light/libxl_internal.h | 18 ++++++++--------
 tools/libs/light/libxl_json.c     | 18 ++++++++--------
 tools/libs/light/libxl_nocpuid.c  |  4 ++--
 tools/xl/xl.h                     | 10 ++++++++-
 tools/xl/xl_info.c                | 34 ++++++++++++++++---------------
 tools/xl/xl_misc.c                |  5 +----
 tools/xl/xl_sxp.c                 |  6 +++---
 tools/xl/xl_vmcontrol.c           | 14 +------------
 12 files changed, 72 insertions(+), 73 deletions(-)
Signature · 1 line
2.30.2