KVM: Fix hotplug of CPUs
authorZachary Amsden <zamsden@redhat.com>
Tue, 29 Sep 2009 21:38:37 +0000 (11:38 -1000)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:13 +0000 (09:32 +0200)
commit3230bb4707278dba25e24cd0a11ea7b2337678ee
tree9548dc371d338b1eb7ee93ef077c70a050cd303f
parente6732a5af9dfcc87078706a1598df0efe5010f73
KVM: Fix hotplug of CPUs

Both VMX and SVM require per-cpu memory allocation, which is done at module
init time, for only online cpus.

Backend was not allocating enough structure for all possible CPUs, so
new CPUs coming online could not be hardware enabled.

Signed-off-by: Zachary Amsden <zamsden@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c