From: =?utf-8?B?6IOh5bCR6b6ZICA=?= Subject: How can i get VA from a pfn in HVM guest Date: Fri, 6 Aug 2010 07:39:56 +0800 (CST) Message-ID: <211245.35035.qm@web92413.mail.cnh.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0056476046==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0056476046== Content-Type: multipart/alternative; boundary="0-181769279-1281051596=:35035" --0-181769279-1281051596=:35035 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, =C2=A0=C2=A0=C2=A0=C2=A0After i get=C2=A0the pfn in a hvm guest using follo= wing code, how can i use it? Simply using __va() seems wrong,=C2=A0for the = ( param.value << PAGE_SHIFT ) is=C2=A0feffc000 in my test module, using __v= a() will overflow. =C2=A0=C2=A0=C2=A0=20 =C2=A0=C2=A0=C2=A0 xen_hvm_param_t param;=20 =C2=A0=C2=A0=C2=A0 param.domid =3D DOMID_SELF;=20 =C2=A0=C2=A0=C2=A0 param.index =3D HVM_PARAM_STORE_PFN;=C2=A0 =C2=A0=C2=A0=C2=A0 hypercall_hvm_op(HVMOP_get_param, ¶m); =0A=0A=0A --0-181769279-1281051596=:35035 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi,
    After i get the pfn in a hvm guest using = following code, how can i use it? Simply using __va() seems wrong, for= the ( param.value << 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_STO= RE_PFN; 
    hypercall_hvm_op(HVMOP_get_param, &= param);

=0A=0A=0A=0A=0A=0A=0A   --0-181769279-1281051596=:35035-- --===============0056476046== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0056476046==--