From: Alexander Graf Subject: Re: [PATCH 6/8] KVM: PPC: E500: Implement MMU notifiers Date: Wed, 8 Aug 2012 10:03:17 +0200 Message-ID: <4262F775-AF84-4E64-BC6E-9A485A39F6FC@suse.de> References: <1344337036-22244-1-git-send-email-agraf@suse.de> <1344337036-22244-7-git-send-email-agraf@suse.de> <20120808033122.GA7794@drongo> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8BIT Cc: "kvm-ppc@vger.kernel.org" , KVM list , "kvmarm@lists.cs.columbia.edu" To: Paul Mackerras Return-path: In-Reply-To: <20120808033122.GA7794@drongo> Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 08.08.2012, at 05:31, Paul Mackerras wrote: > On Tue, Aug 07, 2012 at 12:57:14PM +0200, Alexander Graf wrote: >> The e500 target has lived without mmu notifiers ever since it got >> introduced, but fails for the user space check on them with hugetlbfs. > > Ironically that user space check isn't necessary any more since David > Gibson's fix for the hugetlbfs bug went in (90481622, "hugepages: fix > use after free bug in "quota" handling"). So on sufficiently recent > kernels you can just remove the userspace check. Implementing > mmu-notifiers is a good thing for other reasons though. Yeah, it's probably best to just require mmu notifiers from every target. It would however be good to have a CAP nevertheless (or change the semantics of SYNC_MMU) so that we can run HV KVM on 970 without changes to QEMU. Alex