From: Jeremy Fitzhardinge Subject: Re: How can i get VA from a pfn in HVM guest Date: Thu, 05 Aug 2010 23:07:31 -0700 Message-ID: <4C5BA6A3.1070605@goop.org> References: <211245.35035.qm@web92413.mail.cnh.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <211245.35035.qm@web92413.mail.cnh.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?UTF-8?B?6IOh5bCR6b6Z?= Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 08/05/2010 04:39 PM, =E8=83=A1=E5=B0=91=E9=BE=99 wrote: > Hi, > After i get the pfn in a hvm guest using following code, how can i=20 > use it? Simply using __va() seems wrong, for the ( param.value <<=20 > PAGE_SHIFT ) is feffc000 in my test module, using __va() will overflow. > xen_hvm_param_t param; > param.domid =3D DOMID_SELF; > param.index =3D HVM_PARAM_STORE_PFN; > hypercall_hvm_op(HVMOP_get_param, ¶m); > You need to ioremap it. J