Mailing List Archive

[xen-unstable] libxc: set all VCPU's online by default in HVM info table
# HG changeset patch
# User Gianni Tedesco <gianni.tedesco@citrix.com>
# Date 1302174838 -3600
# Node ID 2b66b83b19b6894995e76f4a580a510d23f1775e
# Parent fd8b81db422ddd80f036fc800691d3225f5fb2eb
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 <gianni.tedesco@citrix.com>
---


diff -r fd8b81db422d -r 2b66b83b19b6 tools/libxc/xc_hvm_build.c
--- a/tools/libxc/xc_hvm_build.c Thu Apr 07 12:12:38 2011 +0100
+++ b/tools/libxc/xc_hvm_build.c Thu Apr 07 12:13:58 2011 +0100
@@ -70,6 +70,7 @@
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;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog