]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitebc9ecdbe1fabb9fa837599061de75363fb0ba63
tree9548dc371d338b1eb7ee93ef077c70a050cd303f
parentf8a7c0225dba1d1447a044da73dc8df4d335771b
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