From: Paul Mackerras Subject: Re: [PATCH 0/3] KVM: PPC: Book3s: HV: Add HPT preallocation Date: Thu, 19 Jan 2012 20:29:48 +1100 Message-ID: <20120119092947.GA18161@bloggs.ozlabs.ibm.com> References: <1326928658-10791-1-git-send-email-agraf@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm-ppc , "dvaleev@suse.com Valeev" , KVM list , David Gibson To: Alexander Graf Return-path: Content-Disposition: inline In-Reply-To: <1326928658-10791-1-git-send-email-agraf@suse.de> Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Thu, Jan 19, 2012 at 12:17:35AM +0100, Alexander Graf wrote: > 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. Nice patches. I just have one minor comment about the 3rd patch. Now I should get in and implement support for other HPT sizes. 16MB is larger than really necessary for small guests (1GB of RAM or less), and really large guests could use a larger HPT. Paul.