From: Gianni Tedesco Date: Thu, 7 Apr 2011 11:13:58 +0000 (+0100) Subject: libxc: set all VCPU's online by default in HVM info table X-Git-Tag: 4.2.0-rc1~2404 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b972d1abef9656914f6d86aed2226264c7b06c57;p=xen.git libxc: set all VCPU's online by default in HVM info table This sets a saner default for the cpu-online-map by setting all bits to 1. The default assumption ought to be that nr-vcpus == nr-vcpus-at-start. If that is not true, then the toolstack must modify the bitmap, but if it is true, the toolstack oughtn't need to do anything further. Signed-off-by: Gianni Tedesco --- diff --git a/tools/libxc/xc_hvm_build.c b/tools/libxc/xc_hvm_build.c index 08bcf3fd18..d619f88dd1 100644 --- a/tools/libxc/xc_hvm_build.c +++ b/tools/libxc/xc_hvm_build.c @@ -70,6 +70,7 @@ static void build_hvm_info(void *hvm_info_page, uint64_t mem_size) hvm_info->acpi_enabled = 1; hvm_info->apic_mode = 1; hvm_info->nr_vcpus = 1; + memset(hvm_info->vcpu_online, 0xff, sizeof(hvm_info->vcpu_online)); /* Memory parameters. */ hvm_info->low_mem_pgend = lowmem_end >> PAGE_SHIFT;