From: Alexander Graf Subject: [PATCH 0/3] KVM: PPC: Book3s: HV: Add HPT preallocation Date: Thu, 19 Jan 2012 00:17:35 +0100 Message-ID: <1326928658-10791-1-git-send-email-agraf@suse.de> Cc: Paul Mackerras , "dvaleev@suse.com Valeev" , KVM list , David Gibson To: kvm-ppc Return-path: Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org 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(-)