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

[Xen-devel] [PATCH 7 of 7] xl: hap parameter handling in configuration file



Get hap parameter from configuration file.
hap parameter can be set to 1 or 0 (default).

diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -466,7 +466,10 @@ static void parse_config_data(const char
         !strncmp(buf, "hvm", strlen(buf)))
         c_info->hvm = 1;
 
-    /* hap is missing */
+    c_info->hap = 0;
+    if (!xlu_cfg_get_string (config, "hap", &buf))
+        c_info->hap = (buf[0] == '1');
+
     if (!xlu_cfg_get_string (config, "name", &buf))
         c_info->name = strdup(buf);
     else

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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