From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?GBK?B?zuK80cPx?= Subject: question about mapping memory from Dom0 to domU Date: Thu, 10 Jul 2008 10:30:40 +0800 (CST) Message-ID: <13888894.677311215657040416.JavaMail.coremail@app141.163.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0118267775==" 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 --===============0118267775== Content-Type: multipart/alternative; boundary="----=_Part_180685_11630533.1215657040415" ------=_Part_180685_11630533.1215657040415 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: quoted-printable Hi: I wanna write code about sharing memory between dom0 and domU, and I de= cide to use void *xc_map_foreign_range(int xc_handle, unint32_t dom, int si= ze, int port, unsigned long mfn) (this is a function in xenctl.h). My question is : If I wanna map a range of memory in dom0 to domU, how can I=A1=A1get the= value of mfn? and I do not know the port here. Can anybody help me ? Thanks . Danius Wu =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D =20 =20 ------=_Part_180685_11630533.1215657040415 Content-Type: text/html; charset=gbk Content-Transfer-Encoding: quoted-printable
 Hi:
    I wanna write code about sharing memor= y between dom0 and domU, and I decide to use void *xc_map_foreign_range(int= xc_handle, unint32_t dom, int size, int port, unsigned long mfn) (this is = a function in xenctl.h).
   My question is :
   I= f I wanna map a range of memory in dom0 to domU, how can I=A1=A1get the val= ue of mfn? and I do not know the port here.

   Can anybody= help me ?
   Thanks .


    &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;         Danius Wu
=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D
 
 
 

=20
=D4=A8=B2=A8=C0=AB=D5=AC = =BA=FE=BE=B0=C8=CB=C9=FA ------=_Part_180685_11630533.1215657040415-- --===============0118267775== 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 --===============0118267775==--