xen-org/xen-api — pull request #789 by johnelse (2012-07-25 00:00:25+00:00)
Title: CA-81449: Take VCPUs_at_startup into account when starting a guest. 

Previously we were creating all the CPU devices as online.

Tested by:

* Running TC-8271 (which does some VCPU hotplugging, but doesn't specifically test this functionality).
* Booting a demo linux VM with VCPUs_at_startup=2 and VCPUs_max=4 and checking that /proc/cpuinfo shows two online VCPUs.
* Checking that any number of VCPUs between 1 and 4 inclusive can then be hotplugged, and that /proc/cpuinfo shows the correct number on online VCPUs in all cases.
* quicktest (for good measure).