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] How to allocate a page inside the guest OS from Xen

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] How to allocate a page inside the guest OS from Xen
From: "James (song wei)" <jsong@xxxxxxxxxx>
Date: Wed, 4 Nov 2009 18:14:49 -0800 (PST)
Delivery-date: Wed, 04 Nov 2009 18:15:11 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <801952.71859.qm@xxxxxxxxxxxxxxxxxxxxxxxxx>
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: <801952.71859.qm@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I am not clear why did you want to let VM aware it. Gerenally speaking, mfn
-> gfn in p2m table. If the Guest OS can acess the pfn without "Page Fault"
, perhaps could satisfy you.  Hope this is helpful.

-James (song wei)


Abhinav Srivastava-2 wrote:
> 
> Hi there,
> 
> In my project, I have to allocate a memory page inside the guest OS from
> the Xen hypervisor. The alloc_domheap_page(d) function allocates a single
> page from the dom heap, which looks okey for my purpose. But, I do not
> know how to add the allocated page into the guest page table, so that
> guest can access this page. I do not want to allocate a Xen page and share
> it with the guest. 
> 
> My question is: how do I make my guest OS aware of this page without doing
> anything inside the guest OS. Is there any function in Xen that directly
> adds a page into the guest OS address space or I have to walk on the guest
> page tables and add this page manually.
> 
> Any help would be appreciated?
> 
> Thanks,
> Abhinav
> 
> 
> 
>       Keep up with people you care about with Yahoo! India Mail. Learn
> how. http://in.overview.mail.yahoo.com/connectmore
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-allocate-a-page-inside-the-guest-OS-from-Xen-tp26205166p26208147.html
Sent from the Xen - Dev mailing list archive at Nabble.com.


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

<Prev in Thread] Current Thread [Next in Thread>