WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "吴佳民" <wujiamin_tyut@xxxxxxx>
Subject: Re: [Xen-devel] question about mapping memory from Dom0 to domU
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=Qpp3rI+QM2qv1QFsL1+E52rsXyn6eJ++Gf7wKuh8jFM=; b=khMz73FZKNNiN6nN0WmQ/YVM5VhGsRIxXBQ7N0TucoV/8WA8gRcBVXnj0aG3pX8eL6 jtKZJc1+n1QMDMCa0uG7BXr0051zEd9D1eh3Jkj92A/9q6lOBRSbDxzNNRAbyf9rg69l Ki1MI9r/rkbA7Q9lsaNYZcHbZ2kuDqx/GghiM=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <13888894.677311215657040416.JavaMail.coremail@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <13888894.677311215657040416.JavaMail.coremail@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>