From: Eli Cohen Subject: can I do mfn to page? Date: Wed, 6 Jul 2011 18:29:01 +0300 Message-ID: <20110706152901.GA15479@mtldesk30> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline 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 Hi, 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? Thanks.