xen: honour VCPU availability on boot
authorIan Campbell <Ian.Campbell@citrix.com>
Thu, 2 Apr 2009 12:24:28 +0000 (13:24 +0100)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 8 Apr 2009 21:25:51 +0000 (14:25 -0700)
commitd745562cc40bff60f0597004d8128fa0225cc267
tree28aedfeafde600301a3e27af2796f4c32d2b7323
parent2b2a733447b2bce5fef053df38412e4c0634ec22
xen: honour VCPU availability on boot

If a VM is booted with offline VCPUs then unplug them during boot. Determining
the availability of a VCPU requires access to XenStore which is not available
at the point smp_prepare_cpus() is called, therefore we bring up all VCPUS
initially and unplug the offline ones as soon as XenStore becomes available.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
drivers/xen/cpu_hotplug.c