From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [PATCH -v2] Monitor command: pfa2hva, translate guest physical address to host virtual address Date: Wed, 10 Nov 2010 20:16:56 +0100 Message-ID: <20101110191656.GC9011@basil.fritz.box> References: <4CD770E5.9000105@linux.vnet.ibm.com> <4CDA421C.2040308@redhat.com> <4CDA42B4.5060201@redhat.com> <1289374912.8719.65.camel@yhuang-dev> <4CDA57A7.5050801@redhat.com> <1289378284.8719.72.camel@yhuang-dev> <20101110164233.GE7205@basil.fritz.box> <4CDAD18F.7010900@redhat.com> <20101110174418.GB9011@basil.fritz.box> <4CDADA9F.9020501@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andi Kleen , Huang Ying , Anthony Liguori , Marcelo Tosatti , Anthony Liguori , "kvm@vger.kernel.org" , Dean Nelson , Luiz Capitulino To: Avi Kivity Return-path: Received: from one.firstfloor.org ([213.235.205.2]:33903 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756002Ab0KJTRC (ORCPT ); Wed, 10 Nov 2010 14:17:02 -0500 Content-Disposition: inline In-Reply-To: <4CDADA9F.9020501@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Nov 10, 2010 at 07:47:11PM +0200, Avi Kivity wrote: > On 11/10/2010 07:44 PM, Andi Kleen wrote: > >> Doing it in userspace in easier, since we can replace the vma for > >> that section (and avoid mixed 4k/2M pages in hugetlbfs). > > > >You can't do that today, there's no way currently to access the non corrupted > >portion of the 2MB page. Once it's poisoned it's all gone. > > I see. Thanks. BTW my understanding is that KVM will only use hugepages with transparent huge pages anyways, correct? So it may be reasonable to simply fix this as part of the transparent hugepages work, but ignore it before that. -Andi -- ak@linux.intel.com -- Speaking for myself only.