libxl: fix xenstore connection when run in domU
PATCH 1/1 libxl: fix xenstore connection when run in domU
When used in a domain other than the one running xenstore, libxl_ctx_init will fail to connect even when xenstore is actually available. Add a call to xs_domain_open to handle this case.
Signature · 2 lines
Daniel De Graaf National Security Agency
tools/libxl/libxl.c +2 -0
@@ -54,6 +54,8 @@ } ctx->xsh =xs_daemon_open (); +if (!ctx->xsh) + ctx->xsh =xs_domain_open ();if (!ctx->xsh) {XL_LOG_ERRNOVAL (ctx,XL_LOG_ERROR , errno,"cannot connect to xenstore" );
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Stefano Stabellini
AppliedQuoted 4 lines · Daniel De Graaf
When used in a domain other than the one running xenstore,
libxl_ctx_initwill fail to connect even when xenstore is actually available. Add a call toxs_domain_opento handle this case.
applied, thanks