tools: Introduce a non-truncating xc_xenver_cmdline()

Update libxl to match.  No API/ABI change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
This commit is contained in:
Andrew Cooper committed 2024-12-20 22:44:42 +00:00
1 parent 1b421d52b2
commit 75f9160762
3 files changed
+7 -3

No files matched your search

+1
View File
@@ -1580,6 +1580,7 @@ int xc_version(xc_interface *xch, int cmd, void *arg);
char *xc_xenver_extraversion(xc_interface *xch);
char *xc_xenver_capabilities(xc_interface *xch);
char *xc_xenver_changeset(xc_interface *xch);
char *xc_xenver_commandline(xc_interface *xch);
int xc_flask_op(xc_interface *xch, xen_flask_op_t *op);
+5
View File
@@ -166,3 +166,8 @@ char *xc_xenver_changeset(xc_interface *xch)
{
return varbuf_simple_string(xch, XENVER_changeset2);
}
char *xc_xenver_commandline(xc_interface *xch)
{
return varbuf_simple_string(xch, XENVER_commandline2);
}
+1 -3
View File
@@ -584,7 +584,6 @@ const libxl_version_info* libxl_get_version_info(libxl_ctx *ctx)
union {
xen_compile_info_t xen_cc;
xen_platform_parameters_t p_parms;
xen_commandline_t xen_commandline;
xen_build_id_t build_id;
} u;
long xen_version;
@@ -614,8 +613,7 @@ const libxl_version_info* libxl_get_version_info(libxl_ctx *ctx)
info->pagesize = xc_version(ctx->xch, XENVER_pagesize, NULL);
xc_version(ctx->xch, XENVER_commandline, &u.xen_commandline);
info->commandline = libxl__strdup(NOGC, u.xen_commandline);
info->commandline = xc_xenver_commandline(ctx->xch);
u.build_id.len = sizeof(u) - sizeof(u.build_id);
r = libxl__xc_version_wrap(gc, info, &u.build_id);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.