From: Abhinav Srivastava <abhinavs_iitkgp@yahoo.co.in>
To: Xen-devel <xen-devel@lists.xensource.com>
Subject: How to allocate a page inside the guest OS from Xen
Date: Thu, 5 Nov 2009 03:13:55 +0530 (IST) [thread overview]
Message-ID: <801952.71859.qm@web7905.mail.in.yahoo.com> (raw)
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
next reply other threads:[~2009-11-04 21:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 21:43 Abhinav Srivastava [this message]
2009-11-05 2:14 ` How to allocate a page inside the guest OS from Xen James (song wei)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=801952.71859.qm@web7905.mail.in.yahoo.com \
--to=abhinavs_iitkgp@yahoo.co.in \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.