Skip to content

Logging cleanups, libxc API change

Ian Jackson xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14xl: Combine headers into one header file.tools/libxl/xl.c tools/libxl/xl.h tools/libxl/xl_cmdimpl.c +3 more+80 -1010 replies
2/14xl: Move "extern" declarations to xl.htools/libxl/xl.c tools/libxl/xl.h+3 -30 replies
3/14stubdom/newlib: Provide correct names for time.h timezone variablesstubdom/Makefile+2 -00 replies
4/14libxc: xc_domain_save.c: rename "write_exact" macrotools/libxc/xc_domain_save.c+16 -160 replies
5/14libelf: Tidy up logging and remove dependency on stdio.tools/libxc/xc_dom_elfloader.c tools/libxc/xenctrl.h tools/xcutils/readnotes.c +4 more+61 -150 replies
6/14xtl: New xentoollog mini-library.tools/libxc/Makefile tools/libxc/xentoollog.h tools/libxc/xtl_core.c +1 more+308 -10 replies
7/14libxc: eliminate static variables, use xentoollog; API changeConfig.mk extras/mini-os/lib/sys.c stubdom/grub/kexec.c +109 more+2383 -21790 replies
8/14libxc: Use new DBGPRINTF for a few debugging output messagestools/libxc/xc_domain_restore.c tools/libxc/xc_domain_save.c tools/libxc/xc_private.h+3 -20 replies
9/14libxl: Fix up some incorrect printf formatstools/libxl/libxl.c tools/libxl/libxl_dom.c tools/libxl/libxl_xshelp.c+5 -40 replies
10/14libxl: Use the caller's logger (xentoollog)tools/libxl/libxl.c tools/libxl/libxl.h tools/libxl/libxl_device.c +7 more+57 -740 replies
11/14xl: Allow control of logging level.tools/libxc/xtl_logger_stdio.c tools/libxl/xl.c tools/libxl/xl.h+33 -142 replies
12/14libxc: save/restore error handling fixestools/libxc/xc_domain_restore.c tools/libxc/xc_domain_save.c tools/libxc/xc_private.c +1 more+125 -1160 replies
13/14libxc: remove \n from strings passed to PERRORtools/libxc/ia64/xc_ia64_hvm_build.c tools/libxc/ia64/xc_ia64_linux_restore.c tools/libxc/xc_domain.c +6 more+34 -340 replies
14/14xl/libxtl: Remove glitch in xl migrate log outputtools/libxc/xentoollog.h tools/libxc/xtl_logger_stdio.c tools/libxl/xl_cmdimpl.c+31 -30 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/14] Logging cleanups, libxc API change

In this patch series I do some serious cleanup. In particular:
* Remove all static global variables from libxc
so that the library is fully reentrant.
* Allow all callers of libxs, libxc, libxl to control where log messages to go.
* Assorted other minor fixups.

This involves an incompatible change to the interface to libxc. Instead of simply getting an int representing a file descriptor, callers now get an xc_interface*. Also, there are three new parameters to xc_interface_open for which naive callers may pass 0.

The overall result is that (amongst other things) the stderr output from "xl" is much more sensible.

(This is a resend of the series with the patches numbered in the Subject line as they should have been. Sorry for the inconvenience.)