From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH -v2] Monitor command: pfa2hva, translate guest physical address to host virtual address Date: Sun, 14 Nov 2010 13:09:49 +0200 Message-ID: <4CDFC37D.9070508@redhat.com> References: <1288060789.2862.336.camel@yhuang-dev> <20101101160952.GE1429@amt.cnet> <4CCF0BAB.9000304@linux.vnet.ibm.com> <1288639205.2059.34.camel@yhuang-mobile> <4CCF136D.5080307@linux.vnet.ibm.com> <4CD58121.2040209@redhat.com> <1289179768.3532.3.camel@yhuang-dev> <4CD770E5.9000105@linux.vnet.ibm.com> <4CDA421C.2040308@redhat.com> <1289377270.8719.66.camel@yhuang-dev> <4CDA5911.1080006@redhat.com> <4CDACD33.8040800@linux.vnet.ibm.com> <1289436982.8719.86.camel@yhuang-dev> <4CDBB9C2.6080608@redhat.com> <1289524608.8719.1066.camel@yhuang-dev> <4CDFC348.5050400@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Anthony Liguori , Marcelo Tosatti , "kvm@vger.kernel.org" , Andi Kleen , Dean Nelson , Luiz Capitulino To: Huang Ying Return-path: Received: from mx1.redhat.com ([209.132.183.28]:19917 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755100Ab0KNLKJ (ORCPT ); Sun, 14 Nov 2010 06:10:09 -0500 In-Reply-To: <4CDFC348.5050400@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 11/14/2010 01:08 PM, Avi Kivity wrote: > >> > 4) Use -mempath on /dev/shm and poison a page in the backing file >> >> If we can poison a page in the backing file, how do we know the >> corresponding gpa and hpa? > > I think you currently can't know it's gpa (why do you want to?); the > upcoming NUMA enhancements should allow this (the plan is to have a > file per guest NUMA node, so we can tell the host what policy to apply > for that node). > > gpa->hpa translation can be derived from /proc/pid/maps. > That would be gpa->hva. -- error compiling committee.c: too many arguments to function