mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
libxl: Fix for Windows UP crash on boot using xl
When parameter "vcpus" is not explicitly set in config file, cur_vpus is initialized to 0 instead of 1, which causes domU crash. Signed-off-by: Fengzhe Zhang <fengzhe.zhang@intel.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
ce89d92aeb
commit
e1e6f0f906
1 file changed
+1
@@ -76,6 +76,7 @@ void libxl_init_build_info(libxl_domain_build_info *b_info, libxl_domain_create_
|
||||
{
|
||||
memset(b_info, '\0', sizeof(*b_info));
|
||||
b_info->max_vcpus = 1;
|
||||
b_info->cur_vcpus = 1;
|
||||
b_info->max_memkb = 32 * 1024;
|
||||
b_info->target_memkb = b_info->max_memkb;
|
||||
b_info->disable_migrate = 0;
|
||||
|
||||