]> err.no Git - linux-2.6/commit
KVM: Use kmem cache for allocating vcpus
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 30 Jul 2007 11:12:19 +0000 (21:12 +1000)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:21 +0000 (10:18 +0200)
commitc16f862d0257349607b7a9be7b4a4b7ed419a3ab
treef84e9f43f845640a0cc887fe8697ab0b3a4e788b
parente7d5d76cae970117affe07f809faf0f18bbac675
KVM: Use kmem cache for allocating vcpus

Avi wants the allocations of vcpus centralized again.  The easiest way
is to add a "size" arg to kvm_init_arch, and expose the thus-prepared
cache to the modules.

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/svm.c
drivers/kvm/vmx.c