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>
Thu, 2 Apr 2009 16:28:39 +0000 (09:28 -0700)
commit53152f957d4a5dfd537d17c823afeb1a2c03753e
treeb1c824856f60be55ad99146d303e9749ded3cdbd
parent6d02c42698f99eccb290ac53d4f10ca883b9f90c
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