All of lore.kernel.org
 help / color / mirror / Atom feed
* [XEN PATCH 00/11] Allow to build libxl and other tools with json-c instead of yajl
@ 2025-08-08 14:55 Anthony PERARD
  2025-08-08 14:55 ` [XEN PATCH 01/11] xl: move printf_info prototype to an header Anthony PERARD
                   ` (11 more replies)
  0 siblings, 12 replies; 34+ messages in thread
From: Anthony PERARD @ 2025-08-08 14:55 UTC (permalink / raw)
  To: xen-devel
  Cc: Anthony PERARD, Juergen Gross, Roger Pau Monné,
	Andrew Cooper, Jan Beulich, Community Manager, Stefano Stabellini,
	Julien Grall, Michal Orzel, Oleksii Kurochko

From: Anthony PERARD <anthony.perard@vates.tech>

Patch series available in this git branch:
https://xenbits.xenproject.org/git-http/people/aperard/xen-unstable.git br.libxl-libjsonc-v1

Hi,

The library YAJL has been unmaintained for several years, without an obvious
fork to pick.

On the other and the library json-c is been maintained and use by several other
project, it's probably already installed on your machine. So this patch series
intend to allow to build the Xen toolstack again json-c, and forgo yajl.

Just in case, YAJL is can still be used.

There's bit of libxl API that exposes YAJL, mainly so it can be used by `xl` to
call libxl_domain_config_gen_json(). It was exposed via the "libxl_json.h"
headers. This functions and others won't be available when libxl is build
against json-c.

Cheers,

Anthony PERARD (11):
  xl: move printf_info prototype to an header
  libxl: Remove duplicate libxl_domain_config_gen_json prototype
  libxl: remove duplicated libxl__yajl_gen_asciiz() prototype
  tools/configure: Introduce deps on json-c lib for libxl
  libxl: Convert libxl__json_parse() to use json-c
  libxl: convert libxl__json_object_to_yajl_gen to
    libxl__json_object_to_libjsonc_object
  libxl: libxl__object_to_json() to json-c
  libxl: convert libxl__json_object_to_json() to json_object
  tools/libxenstat: Use json-c when available
  configure: Use json-c by default, fallback to yajl
  Update CHANGELOG and README with dependency on json-c

 CHANGELOG.md                              |   2 +
 README                                    |   2 +-
 config/Tools.mk.in                        |   2 +
 tools/config.h.in                         |   3 +
 tools/configure                           | 136 +++++-
 tools/configure.ac                        |  10 +-
 tools/include/libxl_json.h                |  30 +-
 tools/libs/light/Makefile                 |   7 +-
 tools/libs/light/gentypes.py              | 160 ++++++-
 tools/libs/light/idl.py                   |   7 +-
 tools/libs/light/libxl_cpuid.c            | 119 +++++
 tools/libs/light/libxl_internal.h         |  25 +-
 tools/libs/light/libxl_json.c             | 557 +++++++++++++++++++++-
 tools/libs/light/libxl_qmp.c              |  53 ++
 tools/libs/light/libxl_types.idl          |   7 +-
 tools/libs/light/libxl_types_internal.idl |   3 +-
 tools/libs/stat/Makefile                  |   3 +-
 tools/libs/stat/xenstat_qmp.c             | 126 ++++-
 tools/xl/Makefile                         |   2 +-
 tools/xl/xl.h                             |   3 +
 tools/xl/xl_info.c                        | 105 +++-
 tools/xl/xl_misc.c                        |   3 -
 22 files changed, 1313 insertions(+), 52 deletions(-)

-- 
Anthony PERARD



^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2025-09-29  9:53 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-08 14:55 [XEN PATCH 00/11] Allow to build libxl and other tools with json-c instead of yajl Anthony PERARD
2025-08-08 14:55 ` [XEN PATCH 01/11] xl: move printf_info prototype to an header Anthony PERARD
2025-08-27 14:55   ` Jason Andryuk
2025-08-08 14:55 ` [XEN PATCH 02/11] libxl: Remove duplicate libxl_domain_config_gen_json prototype Anthony PERARD
2025-08-27 14:55   ` Jason Andryuk
2025-08-08 14:55 ` [XEN PATCH 03/11] libxl: remove duplicated libxl__yajl_gen_asciiz() prototype Anthony PERARD
2025-08-27 14:56   ` Jason Andryuk
2025-08-08 14:55 ` [XEN PATCH 04/11] tools/configure: Introduce deps on json-c lib for libxl Anthony PERARD
2025-08-11 10:48   ` Andrew Cooper
2025-08-13 15:42     ` Anthony PERARD
2025-08-27 15:01   ` Jason Andryuk
2025-08-29 13:17     ` Anthony PERARD
2025-08-31 14:42       ` Jason Andryuk
2025-08-08 14:55 ` [XEN PATCH 05/11] libxl: Convert libxl__json_parse() to use json-c Anthony PERARD
2025-08-27 15:20   ` Jason Andryuk
2025-08-08 14:55 ` [XEN PATCH 06/11] libxl: convert libxl__json_object_to_yajl_gen to libxl__json_object_to_libjsonc_object Anthony PERARD
2025-08-27 15:37   ` Jason Andryuk
2025-08-29 13:56     ` Anthony PERARD
2025-08-31 14:51       ` Jason Andryuk
2025-09-29  9:52         ` Anthony PERARD
2025-08-08 14:55 ` [XEN PATCH 07/11] libxl: libxl__object_to_json() to json-c Anthony PERARD
2025-08-27 17:51   ` Jason Andryuk
2025-08-27 17:59     ` Andrew Cooper
2025-08-29 15:32       ` Anthony PERARD
2025-08-08 14:55 ` [XEN PATCH 08/11] libxl: convert libxl__json_object_to_json() to json_object Anthony PERARD
2025-08-27 17:54   ` Jason Andryuk
2025-08-08 14:56 ` [XEN PATCH 09/11] tools/libxenstat: Use json-c when available Anthony PERARD
2025-08-27 18:00   ` Jason Andryuk
2025-08-08 14:56 ` [XEN PATCH 10/11] configure: Use json-c by default, fallback to yajl Anthony PERARD
2025-08-08 14:56 ` [XEN PATCH 11/11] Update CHANGELOG and README with dependency on json-c Anthony PERARD
2025-08-11  8:27   ` Oleksii Kurochko
2025-08-11 10:55   ` Andrew Cooper
2025-08-11 14:37     ` Anthony PERARD
2025-08-08 15:14 ` [XEN PATCH 00/11] Allow to build libxl and other tools with json-c instead of yajl Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.