While using the book3s hv code on a 970 system, we quickly ran into situations where we didn't have enough contiguous memory available to allocate a 16MB region for the page table we need to manage the guest's memory. So I went ahead, cleaned up the code we currently use to preallocate RMAs and made it usable for HPT allocation. This patch set is the result of it. As a nice side effect, it also solves a potential security issue on 970 where we reused the RMA of previous guests without clearing them. These patches are in use in our internal build service testbed and work smoothly, giving us a working setup based on 970. Alexander Graf (3): KVM: PPC: Convert RMA allocation into generic code KVM: PPC: Initialize linears with zeros KVM: PPC: Add HPT preallocator arch/powerpc/include/asm/kvm_host.h | 8 +- arch/powerpc/include/asm/kvm_ppc.h | 10 +- arch/powerpc/kernel/setup_64.c | 2 +- arch/powerpc/kvm/book3s_64_mmu_hv.c | 18 +++- arch/powerpc/kvm/book3s_hv.c | 8 +- arch/powerpc/kvm/book3s_hv_builtin.c | 209 +++++++++++++++++++++++----------- 6 files changed, 174 insertions(+), 81 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html