aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGianni Tedesco <gianni.tedesco@citrix.com>2011-04-07 15:26:58 +0100
committerGianni Tedesco <gianni.tedesco@citrix.com>2011-04-07 15:26:58 +0100
commit416c5575813326b2826f9fc3a0612df45d0934e4 (patch)
tree1586f42eb09276a3bdbb3300498c5b33a0e83789
parentab302054f2f44e373bdacca73d74d0033957ab88 (diff)
downloadxen-416c5575813326b2826f9fc3a0612df45d0934e4.tar.gz
xen-416c5575813326b2826f9fc3a0612df45d0934e4.tar.bz2
xen-416c5575813326b2826f9fc3a0612df45d0934e4.zip
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> xen-unstable changeset: 23179:2b66b83b19b6 xen-unstable date: Thu Apr 07 12:13:58 2011 +0100
-rw-r--r--tools/libxc/xc_hvm_build.c1
1 files changed, 1 insertions, 0 deletions
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;