KVM: PPC: Add HPT preallocator
authorAlexander Graf <agraf@suse.de>
Mon, 16 Jan 2012 18:12:11 +0000 (19:12 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:57:28 +0000 (14:57 +0200)
commitd2a1b483a4a3f4bbb5fec1877f716c15ac7fa405
tree3c1e6162250afb6c79f846749d91d71d2ccc0712
parentb7f5d0114c708d6efd264a2c5e5a31cf292a9cec
KVM: PPC: Add HPT preallocator

We're currently allocating 16MB of linear memory on demand when creating
a guest. That does work some times, but finding 16MB of linear memory
available in the system at runtime is definitely not a given.

So let's add another command line option similar to the RMA preallocator,
that we can use to keep a pool of page tables around. Now, when a guest
gets created it has a pretty low chance of receiving an OOM.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_hv_builtin.c
This page took 0.025757 seconds and 5 git commands to generate.