From: Jiang Wang Subject: Physical memory layout for dom0? Date: Tue, 23 Jun 2009 11:30:29 -0400 Message-ID: <77e29ea90906230830p5d00e1d1i5a7684ad64a8ad13@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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