From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Kaustubh Kabra <kaustubhwise@gmail.com>
Cc: Dan Magenheimer <dan.magenheimer@oracle.com>,
xen-devel@lists.xensource.com, vasani.ashwin@gmail.com,
Tim.Deegan@citrix.com, jeremy@goop.org, kabrakaustubh@gmail.com,
keir@xen.org
Subject: Re: Re: Doubt regarding virtual memory mapping from hypervisor to a domain
Date: Thu, 10 Feb 2011 10:13:22 -0500 [thread overview]
Message-ID: <20110210151322.GA9981@dumpdata.com> (raw)
In-Reply-To: <AANLkTimfRCQrmKKe5XjzRSH89fg+suKVAVsqpKacMjLv@mail.gmail.com>
On Thu, Feb 10, 2011 at 06:56:52PM +0530, Kaustubh Kabra wrote:
> On Mon, Jan 31, 2011 at 9:06 PM, Dan Magenheimer <dan.magenheimer@oracle.com
> > wrote:
>
> > > From: Kaustubh Kabra [mailto:kaustubhwise@gmail.com]
> > > I have allocated few order=9 pages in Xen memory space using
> > > alloc_domheap_pages(NULL,9,0) during boot time just before domain is
> > > created (dom0 = domain_create(0, DOMCRF_s3_integrity, DOM0_SSIDREF) in
> > > xen/arch/x86/setup.c).
> > >
> > > I got the following virtual addresses in xen log message-
> > > (XEN) a2k2: Virt_addr:ffff83011cc00000 MFN:11cc00
> > > (XEN) a2k2: Virt_addr:ffff83011ca00000 MFN:11ca00
> > > (XEN) a2k2: Virt_addr:ffff83011c800000 MFN:11c800
> > > (XEN) a2k2: Virt_addr:ffff83011c600000 MFN:11c600
> > > (XEN) a2k2: Virt_addr:ffff83011c400000 MFN:11c400
> > > (XEN) a2k2: Virt_addr:ffff83011c200000 MFN:11c200
> > > (XEN) a2k2: Virt_addr:ffff83011c000000 MFN:11c000
> > > (XEN) a2k2: Virt_addr:ffff83011be00000 MFN:11be00
> > >
> > > As per config.h file Xen memory map,the virtual mapping shows that the
> > > memory is allocated in
> > > 1:1 direct mapping of all physical memory .Can anyone elaborate
> > > regarding this mapping ?
> >
> > It's not clear what you are asking. Can you be more precise?
> >
> > > Now can I allocate this mapped memory reserved by Xen hypervisor to
> > > any domain through any existing or my new hypercall?
> >
> >
> Precisely, i want to allocate this mfn to a requesting domain by making a
> PMD entry. I tried using xen_set_pte and other hugetlb functions but it
> cannot write as it is in read-only area . So, I passed this new formed PTE
> formed using this mfn to hypervisor and tried setting the required PMD entry
> to this new PTE, but xen crashes .
With what?
prev parent reply other threads:[~2011-02-10 15:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-28 19:23 Doubt regarding virtual memory mapping from hypervisor to a domain Kaustubh Kabra
2011-01-31 15:36 ` Dan Magenheimer
2011-02-10 13:26 ` Kaustubh Kabra
2011-02-10 15:13 ` Konrad Rzeszutek Wilk [this message]
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=20110210151322.GA9981@dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Tim.Deegan@citrix.com \
--cc=dan.magenheimer@oracle.com \
--cc=jeremy@goop.org \
--cc=kabrakaustubh@gmail.com \
--cc=kaustubhwise@gmail.com \
--cc=keir@xen.org \
--cc=vasani.ashwin@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).