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

[Xen-devel] How to allocate a page inside the guest OS from Xen

To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] How to allocate a page inside the guest OS from Xen
From: Abhinav Srivastava <abhinavs_iitkgp@xxxxxxxxxxx>
Date: Thu, 5 Nov 2009 03:13:55 +0530 (IST)
Delivery-date: Wed, 04 Nov 2009 13:44:37 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1257371035; bh=7KUYYde5Henbi27NbB/9p3stTSSvrzdEdQ4ZYBInkxg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=KzPDkzRJYFPCm5fqqJE/X4eslgGnB+y5LrL2F7rVg90ruNr9+3NWY83+OPk1ezBO5S4n02YhozdvP15WKBXlIkFz2ZCNBCCfYtJI1uygwLOvc0aSb17y+KFGcHW0LYimKQ0H7JOrA7xD+dmiw6+CPazGvftUJpZeTo4m5YF4jY8=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=nHTQWuOgptVXpmvBD8iyQ0cMY0KZup30m16AtY4MYft0U1negQTniK9InMlp5J96A4/SEnRgRK00f3XVI8jfKgvkA8M5RRheNFudgAXH9BIGoxkRe9GAwInCvSgoIHGYCcsVfhxD9oDafA7oyTlTXPsyekMoE7vkmSSnUvaJWgI=;
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
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

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