From: Gianni Tedesco Subject: [PATCH]: libxc: set all VCPU's online by default in HVM info table Date: Fri, 11 Feb 2011 15:42:55 +0000 Message-ID: <1297438975.29419.16.camel@qabil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Devel Cc: George Dunlap , Ian Campbell , Tim Deegan , Fraser , Keir List-Id: xen-devel@lists.xenproject.org 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 -r a0662e3bedea tools/libxc/xc_hvm_build.c --- a/tools/libxc/xc_hvm_build.c Fri Feb 11 14:28:14 2011 +0000 +++ b/tools/libxc/xc_hvm_build.c Fri Feb 11 14:39:47 2011 +0000 @@ -70,6 +70,7 @@ static void build_hvm_info(void *hvm_inf 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;