Skip to contentSkip to conversation

Fix obscure domain creation fail error

PATCH New Guido Trotter 1 participant 1 message May 16, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix obscure domain creation fail error

Author: Ian Jackson <[email protected]>

Ian Jackson wrote this on my laptop during the hackathon to fix some obscure error message I was getting. Note that:

1) There are other parts that do the same, so perhaps they are worth looking at
2) The error is still quite obscure, as the actual issue was "virtualization extension disabled" while using xen-hvm, but the errno choosen was about "allocating memory" and libxl complains about "parsing the config file" which are not actual problems.

---
 tools/libxl/libxl_create.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/libxl_create.c +1 -1
index b0939cc..0be7de5 100644
@@ -314,7 +314,7 @@ int libxl__domain_make(libxl_ctx *ctx, libxl_domain_create_info *info,
 
     ret = xc_domain_create(ctx->xch, info->ssidref, handle, flags, domid);
     if (ret < 0) {
-        LIBXL__LOG_ERRNOVAL(ctx, LIBXL__LOG_ERROR, ret, "domain creation fail");
+        LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "domain creation fail");
         rc = ERROR_FAIL;
         goto out;
     }
Signature · 1 line
1.7.10.4