Skip to contentSkip to conversation

xl: parse the maxvcpus config file parameter

PATCH New Stefano Stabellini 1 participant 1 message Sep 2, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xl: parse the maxvcpus config file parameter

xl: parse the maxvcpus config file parameter

tools/libxl/xl_cmdimpl.c +3 -0
diff -r 6d605ec6bcd8 tools/libxl/xl_cmdimpl.c
@@ -687,6 +687,9 @@ static void parse_config_data(const char
         b_info->cur_vcpus = (1 << l) - 1;
     }
 
+    if (!xlu_cfg_get_long (config, "maxvcpus", &l))
+        b_info->max_vcpus = l;
+
     if (!xlu_cfg_get_long (config, "memory", &l)) {
         b_info->max_memkb = l * 1024;
         b_info->target_memkb = b_info->max_memkb;