Skip to content

xl/libxl: return and print partial config

Wei Liu xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2libxl: continue when encounter ERROR_JSON_CONFIG_EMPTYtools/libxl/libxl.c+5 -15 replies
2/2xl: print out partial configuration in long mode of list commandtools/libxl/xl_cmdimpl.c+2 -49 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchIan Campbell
1/2A-b
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.5 0/2] xl/libxl: return and print partial config

This small series change the behavior of libxl_retrieve_domain_configuration, to make it continue to retrieve information from xenstore even if JSON template is not available.

This change of API behaviour is only internal. Conceptually speaking, any non-zero return value means d_config is partially filled. The chanage just makes it fill in more information (xenstore entries) than before (empty). Caller can still expect zero on success and non-zero on error and act accordingly.

"xl list -l" is now changed to print out the partial configuration, since it needs to be consistent with the short output.

Wei.

Wei Liu (2):
libxl: continue when encounter ERROR_JSON_CONFIG_EMPTY
xl: print out partial configuration in long mode of list command

 tools/libxl/libxl.c      |    6 +++++-
 tools/libxl/xl_cmdimpl.c |    6 ++----
 2 files changed, 7 insertions(+), 5 deletions(-)
Signature · 1 line
1.7.10.4