From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoUpS-0004cr-Qn for qemu-devel@nongnu.org; Tue, 10 Jul 2012 03:25:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoUpM-0001Ql-FP for qemu-devel@nongnu.org; Tue, 10 Jul 2012 03:25:50 -0400 Received: from gate.crashing.org ([63.228.1.57]:50707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoUpM-0001QU-6L for qemu-devel@nongnu.org; Tue, 10 Jul 2012 03:25:44 -0400 Message-ID: <1341905138.2561.12.camel@pasglop> From: Benjamin Herrenschmidt Date: Tue, 10 Jul 2012 17:25:38 +1000 In-Reply-To: <1340799048.3732.55.camel@pasglop> References: <1340799048.3732.55.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] pseries: Add support for new KVM hash table control call List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexander Graf , kvm-ppc@vger.kernel.org, kvm@vger.kernel.org On Wed, 2012-06-27 at 22:10 +1000, Benjamin Herrenschmidt wrote: > From: David Gibson > > This adds support for then new "reset htab" ioctl which allows qemu > to properly cleanup the MMU hash table when the guest is reset. With > the corresponding kernel support, reset of a guest now works properly. > > This also paves the way for indicating a different size hash table > to the kernel and for the kernel to be able to impose limits on > the requested size. Alex, this has a bug, if you already applied it, please sneak: > +int kvmppc_reset_htab(int shift_hint) > +{ > + uint32_t shift = shift_hint; > + > + if (kvm_check_extension(kvm_state, KVM_CAP_PPC_ALLOC_HTAB)) { The above shall be if (kvm_enabled() && .... Else it will segfault in kvm_check_extension Or let me know if I should re-submit. Cheers, Ben.