This is the tools side of the Xen series posted previously. With this, a Xen built with long strings can be retrieved:
# xl info ... xen_version : 4.18-unstable+REALLY LONG EXTRAVERSION xen_changeset : Tue Jan 3 19:27:17 2023 git:52d2da6c0544+REALLY SUPER DUPER EXTRA MEGA LONG CHANGESET ... Andrew Cooper (6): tools/libxc: Move xc_version() out of xc_private.c into its own file tools: Introduce a non-truncating xc_xenver_extraversion() tools: Introduce a non-truncating xc_xenver_capabilities() tools: Introduce a non-truncating xc_xenver_changeset() tools: Introduce a non-truncating xc_xenver_cmdline() tools: Introduce a xc_xenver_buildid() wrapper tools/include/xenctrl.h | 10 ++ tools/libs/ctrl/Makefile.common | 1 + tools/libs/ctrl/xc_private.c | 66 ------------ tools/libs/ctrl/xc_private.h | 7 -- tools/libs/ctrl/xc_version.c | 206 ++++++++++++++++++++++++++++++++++++ tools/libs/light/libxl.c | 61 +---------- tools/ocaml/libs/xc/xenctrl_stubs.c | 45 +++++--- 7 files changed, 250 insertions(+), 146 deletions(-) create mode 100644 tools/libs/ctrl/xc_version.c -- 2.11.0