Skip to contentSkip to conversation

xl: enable hap, parse hap option in the config files

PATCH New Stefano Stabellini 1 participant 1 message Jun 3, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xl: enable hap, parse hap option in the config files

Hi all,
this simple patch enables hap by default in xl and also allows xl to parse the hap option in the VM config file.

---

tools/libxl/xl_cmdimpl.c +4 -1
diff -r 4ab68bf4c37e tools/libxl/xl_cmdimpl.c
@@ -160,6 +160,7 @@
     memset(c_info, '\0', sizeof(*c_info));
     c_info->xsdata = NULL;
     c_info->platformdata = NULL;
+    c_info->hap = 1;
     c_info->hvm = 1;
     c_info->oos = 1;
     c_info->ssidref = 0;
@@ -441,7 +442,9 @@
         !strncmp(buf, "hvm", strlen(buf)))
         c_info->hvm = 1;
 
-    /* hap is missing */
+    if (!xlu_cfg_get_long (config, "hap", &l))
+        c_info->hap = l;
+
     if (!xlu_cfg_get_string (config, "name", &buf))
         c_info->name = strdup(buf);
     else