]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Dynamically allocate vcpus
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 27 Jul 2007 07:16:56 +0000 (17:16 +1000)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:20 +0000 (10:18 +0200)
commit35eb8c02bb04bf24698b6b53e94aa53cd13154b3
tree38da1073dae5f30fd8f162669bb5a86959f8ace5
parent5d9ebb2e6c03c0ee2d0a6bdbdb26872fd9c4bca2
KVM: Dynamically allocate vcpus

This patch converts the vcpus array in "struct kvm" to a pointer
array, and changes the "vcpu_create" and "vcpu_setup" hooks into one
"vcpu_create" call which does the allocation and initialization of the
vcpu (calling back into the kvm_vcpu_init core helper).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/kvm_svm.h
drivers/kvm/svm.c
drivers/kvm/vmx.c