Skip to contentSkip to conversation

Physical memory layout for dom0?

DISCUSSION Jiang Wang 1 participant 1 message Jun 23, 2009

lore
Share & tools
lore

Jiang Wang

author
#0 lore raw

Hi:

I want to understand the physical memory (or machine memory) layout for dom 0 (suppose Linux is dom 0). In a normal Linux for x86-32, the Linux kernel is linear mapped, and the physical address of a function or variable is (va - 0xc0000000). I can find out the physical address given the virtual address of a function. In Xen, the memory of hypervisor is also linear mapped and I can find it in
http://lxr.xensource.com/lxr/source/xen/include/asm-x86/config.h. But how about dom 0? Is its kernel memory also linear mapped to the machine memory? How can I find out the physical (machine) address of a variable of function given its virtual address in dom 0? I guess the memory of domU is dynamically mapped because it may be migrated to another machine. But dom 0 should be linear mapped, right?

PS: I am working on Xen 3.3.1 with a linux 2.6.18-xen as dom 0.

Regards,

Jiang