[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] question about mapping memory from Dom0 to domU


  • To: "吴佳民" <wujiamin_tyut@xxxxxxx>
  • From: weiming <zephyr.zhao@xxxxxxxxx>
  • Date: Wed, 9 Jul 2008 22:34:58 -0400
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 09 Jul 2008 19:35:22 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=adGlkd/FBqMV7C4BLdbxV14fw85+y5O3DeOrT9aghecY0aspU7X1SSQEsjj3Gdhjpf IJWq7vlDsYLjSLdtuhywplAaDRpQ+IMHruCMj/6z4e3GtgFGh7IxaoAITF0iWRNSqby/ C5VgJjiTH/bzbdVOHGizo/AW8Z0Cy1S41Hzhg=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

you can use xc_translate_foreign_address to get a the mfn of a give virtual address

2008/7/9 吴佳民 <wujiamin_tyut@xxxxxxx>:
 Hi:
    I wanna write code about sharing memory 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 :
   If I wanna map a range of memory in dom0 to domU, how can I get the value of mfn? and I do not know the port here.

   Can anybody help me ?
   Thanks .


                                                                Danius Wu
=========================================================
 
 
 



渊波阔宅 湖景人生
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.