xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Question about the memory layout of xen hypervisor, dom0 and domU
@ 2013-11-22 20:04 Meng Xu
  2013-11-23 17:13 ` Dario Faggioli
  0 siblings, 1 reply; 3+ messages in thread
From: Meng Xu @ 2013-11-22 20:04 UTC (permalink / raw)
  To: xen-devel@lists.xen.org; +Cc: Meng Xu, Sisu Xi


[-- Attachment #1.1: Type: text/plain, Size: 1503 bytes --]

Hi,

I have a question about the memory layout of the Xen hypervisor, dom0 and
domU.

*The goal I want to achieve is:
I want to show which RAM area is used by hypervisor, which RAM area is used
by dom0, which RAM area is used by each domU (PV guest domain).
I hope to know the above information when xen is booted as well as when xen
is running some domUs.


I already know that we can dedicate a fix size of RAM to dom0 according to (
http://wiki.xen.org/wiki/Xen_Best_Practices). But it's unclear which RAM
area is allocated.

I read the paravirtualised memory management on
http://wiki.xen.org/wiki/X86_Paravirtualised_Memory_Management; but it only
shows the virtual address range of each domain.

I also looked at the xen/common/page_alloc.c; I think the function
alloc_domheap_pages() is used to allocate machine pages to doms, and
alloc_xenheap_pages() is used to allocate machine pages to hypervisor.
Maybe I can just print out the machine address when each machine page is
allocated and freed. But it seems too nasty.


*My question is:
Is there any command or tool showing the RAM layout of hypervisor, dom0 and
domUs?
If not, is there any better way to achieve the goal of showing the RAM
layout?  For example, if there is any structure I can traverse to get all
machine address used by hypervisor, dom0 and domUs, that will be great!

Thank you very much for your help and advice!

Best,

Meng


-----------
Meng Xu
PhD Student in Computer and Information Science
University of Pennsylvania

[-- Attachment #1.2: Type: text/html, Size: 2099 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-12 21:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-22 20:04 Question about the memory layout of xen hypervisor, dom0 and domU Meng Xu
2013-11-23 17:13 ` Dario Faggioli
2013-12-12 21:46   ` Meng Xu

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).