WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Physical memory layout for dom0?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Physical memory layout for dom0?
From: Jiang Wang <jwangzju@xxxxxxxxx>
Date: Tue, 23 Jun 2009 11:30:29 -0400
Delivery-date: Tue, 23 Jun 2009 08:31:03 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=q3PUDv1A1s+j7spLMvI7cFChZbrjY3t81vVOQhFC0lM=; b=BJfY2WD8OxUVcospxE+kDNNVKwSZWPC/6+A1j4NuxMcUcHhu9URTD203t3uj1YmGvF BwHNuWYdjJhnmXCI4Dz2BLkHnkz5sri7MsZEYVdug2KUzNOkp9NWsVoWVx8o8sVxCWQm 0JD//1lkzPWFg1IJU+1TEmjNpPGLOUaHs+HcM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Ca5F09Lg4b2Xc1ZKNhycVLgvfXSVHyf0LP6nEZGlx7e8PqXyMmUGt7lk+7L0AM2U18 fmUBgz5LVeCE61/u63lH/Ll4TnikHwuFt/78oioA/DSeK2wmR+UMFGt/eyBz9FnfjMBU hZWCUUm2Xao6u1vSJg4ZrOiCq2ncob5AOF8jY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Physical memory layout for dom0?, Jiang Wang <=