]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: Fix hotplug of CPUs
authorZachary Amsden <zamsden@redhat.com>
Tue, 29 Sep 2009 21:38:37 +0000 (11:38 -1000)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 30 Sep 2009 13:34:53 +0000 (10:34 -0300)
commita852d5cf5cf47d8a56ebeb3d3c58e91bba89f0e8
treed61a7693cfbff97b970faf08e9fb107b3c956f44
parentdfff2693343d6d6d9a580c54b8ab8112f8bb99d9
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