]> www.infradead.org Git - users/dwmw2/linux.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>
Sun, 29 Jul 2007 08:02:03 +0000 (11:02 +0300)
commitfbc4f2e23aa26a8537f8f147c75a632e498c39c7
tree123a26f608eb483f72116890b5a3665c41af30fc
parent6532f26b4f39a409475918da47844eaff219f50b
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