[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix obscure domain creation fail error



Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

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(-)

diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c
index b0939cc..0be7de5 100644
--- a/tools/libxl/libxl_create.c
+++ b/tools/libxl/libxl_create.c
@@ -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;
     }
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.