KVM: PPC: Use the vcpu kmem_cache when allocating new VCPUs
authorSasha Levin <levinsasha928@gmail.com>
Wed, 7 Dec 2011 08:24:56 +0000 (10:24 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:40 +0000 (14:52 +0200)
commit6b75e6bfef7ba108ac3df0d430d80dea68fde4bf
tree6b42f3eddc94650a55ccf8a6d57e0f2e9597a919
parentd37b1a037cae725e69e5bf96f58544b69d7c93a6
KVM: PPC: Use the vcpu kmem_cache when allocating new VCPUs

Currently the code kzalloc()s new VCPUs instead of using the kmem_cache
which is created when KVM is initialized.

Modify it to allocate VCPUs from that kmem_cache.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/book3s_hv.c