debuggers.hg

changeset 22841:17181eaedb78

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>
author Ian Jackson <Ian.Jackson@eu.citrix.com>
date Fri Jan 21 17:45:56 2011 +0000 (2011-01-21)
parents c342aa1476e8
children 8b6e7f43683e
files tools/libxl/libxl_create.c
line diff
     1.1 --- a/tools/libxl/libxl_create.c	Fri Jan 21 17:44:07 2011 +0000
     1.2 +++ b/tools/libxl/libxl_create.c	Fri Jan 21 17:45:56 2011 +0000
     1.3 @@ -76,6 +76,7 @@ void libxl_init_build_info(libxl_domain_
     1.4  {
     1.5      memset(b_info, '\0', sizeof(*b_info));
     1.6      b_info->max_vcpus = 1;
     1.7 +    b_info->cur_vcpus = 1;
     1.8      b_info->max_memkb = 32 * 1024;
     1.9      b_info->target_memkb = b_info->max_memkb;
    1.10      b_info->disable_migrate = 0;