From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm97j-0006EV-54 for qemu-devel@nongnu.org; Thu, 09 Mar 2017 20:13:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cm97i-0003rz-11 for qemu-devel@nongnu.org; Thu, 09 Mar 2017 20:13:39 -0500 From: David Gibson Date: Fri, 10 Mar 2017 12:13:23 +1100 Message-Id: <20170310011328.30719-1-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [PATCH for-2.10 0/5] HPT resizing for PAPR guests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-ppc@nongnu.org Cc: qemu-devel@nongnu.org, agraf@suse.de, sjitindarsingh@gmail.com, sam.bobroff@au1.ibm.com, David Gibson These patches implementa PAPR extension to allow 'pseries' machine type guests to resize their hashed page table (HPT). This allows for more flexible memory hotplug, because we don't need to size the initial HPT for the maximum memory size. That's particularly valuable with (HV) KVM, since the HPT has to be host physically contiguous. I believe this is ready to be staged for qemu-2.10 now, and assuming there are no objections or changes suggested, I'll merge this to my ppc-for-2.10 branch. Since the last post this has been rebased (not trivial, due to the HPT handling cleanups which went in recently). I've also removed an assert which I suspect could be triggered by the guest. David Gibson (5): pseries: Stubs for HPT resizing pseries: Implement HPT resizing pseries: Enable HPT resizing for 2.10 pseries: Use smaller default hash page tables when guest can resize pseries: Allow HPT resizing with KVM hw/ppc/spapr.c | 103 +++++++++- hw/ppc/spapr_hcall.c | 459 ++++++++++++++++++++++++++++++++++++++++++++ hw/ppc/trace-events | 2 + include/hw/ppc/spapr.h | 19 ++ include/hw/ppc/spapr_ovec.h | 1 + target/ppc/kvm.c | 75 ++++++++ target/ppc/kvm_ppc.h | 26 +++ target/ppc/mmu-hash64.h | 4 + 8 files changed, 681 insertions(+), 8 deletions(-) -- 2.9.3