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/
Home Products Support Community News


[Xen-devel] can I do mfn to page?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] can I do mfn to page?
From: Eli Cohen <eli@xxxxxxxxxxxxxxxxxx>
Date: Wed, 6 Jul 2011 18:29:01 +0300
Delivery-date: Wed, 06 Jul 2011 08:29:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
I am trying to use the grant tables mechanism to do allocate memory in
domU and obtain a struct page * for that memory in dom0.

I do the following in domU:
1. __get_free_pages
2. virt_to_mfn
3. gnttab_grant_foreign_access

Now I have a reference which I pass to dom0.

In dom0 I would like but don't know how to do:
1. Get the refrence to the page without mapping it to dom0 address
space (all I want is make sure the page is still owned by domU so I
want to use the passed reference).
2. Use a "mfn to struct page *" call.

Is that possible?


Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] can I do mfn to page?, Eli Cohen <=