]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7fce18792440214857a81239eb007138907a8ba
tree3c1e6162250afb6c79f846749d91d71d2ccc0712
parentbef5fd20fd1fa4c8a638cd5fac158822b80b78fe
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