xl: parse the maxvcpus config file parameter
PATCH 1/1 xl: parse the maxvcpus config file parameter
xl: parse the maxvcpus config file parameter
Signed-off-by Stefano Stabellini <[email protected]>
tools/libxl/xl_cmdimpl.c +3 -0
@@ -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;