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>
Showing
- arch/powerpc/include/asm/kvm_host.h 1 addition, 0 deletionsarch/powerpc/include/asm/kvm_host.h
- arch/powerpc/include/asm/kvm_ppc.h 2 additions, 0 deletionsarch/powerpc/include/asm/kvm_ppc.h
- arch/powerpc/kvm/book3s_64_mmu_hv.c 16 additions, 3 deletionsarch/powerpc/kvm/book3s_64_mmu_hv.c
- arch/powerpc/kvm/book3s_hv_builtin.c 38 additions, 1 deletionarch/powerpc/kvm/book3s_hv_builtin.c
Please register or sign in to comment