From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Josh Zhao <joshsystem@gmail.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Questions about xen memory management
Date: Thu, 8 Aug 2013 10:02:36 +0100 [thread overview]
Message-ID: <52035EAC.2020500@citrix.com> (raw)
In-Reply-To: <CAOYkbahWrnRjJZ0JP9H2nGm5s4uXXeOpvwQiTC3QAAXxES0yrQ@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1198 bytes --]
On 08/08/13 07:59, Josh Zhao wrote:
> Hi,
> I am reading the arm MM initial code, there are 2 questions I can't
> understand:
> 1) Both init_xenheap_pages() and init_domheap_pages() will invoke
> init_heap_pages() to initialize pages management. But there is no
> flag to know those pages are belonged to xenheap or domheap. Are
> xenhelp and domheap in the same zone?
xenheap pages have permanent mappings in the Xen virtual address space,
so they can be accessed from anywhere in the code. domheap pages by
default do not have mappings, and must be explicitly mapped to be used.
For PV guests, Xen hand most of the virtual address space to the guest,
so only the really critical memory can have permanent mappings.
>
> 2) What's the vmap.c used for ? I saw that only the ioremap will use
> it. If so, it seems no needs to allocate pages to fill the all VMAP
> range (256M - 1G) by alloc_domheap_page().
The domheap pages allocated here are also for tracking purposes, and are
far fewer than the entire VMAP range.
~Andrew
>
> Thanks,
>
>
> Josh
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
[-- Attachment #1.2: Type: text/html, Size: 2647 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-08-08 9:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-08 6:59 Questions about xen memory management Josh Zhao
2013-08-08 9:02 ` Andrew Cooper [this message]
2013-08-08 9:37 ` Ian Campbell
2013-08-09 3:15 ` Josh Zhao
2013-08-13 20:20 ` Ian Campbell
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=52035EAC.2020500@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=joshsystem@gmail.com \
--cc=xen-devel@lists.xen.org \
/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.