]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite61eba16b18016e434bc263cde451ddae8a4ec47
tree6b42f3eddc94650a55ccf8a6d57e0f2e9597a919
parente0a58c711ca93fb9e19f8b144e9a3d386669190e
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