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

Re: [Xen-devel] How to map machine address and pseudo-physical address?

To: Guillaume Thouvenin <guillaume.thouvenin@xxxxxxxx>
Subject: Re: [Xen-devel] How to map machine address and pseudo-physical address?
From: "Bryan D. Payne" <bryan@xxxxxxxxxxxx>
Date: Wed, 28 Feb 2007 17:30:58 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 28 Feb 2007 14:30:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070228150438.0db462b8@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20070228150438.0db462b8@xxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
So the question is: Is machine memory mapped in dom0? if not, can I map
parts of it?

If I understand your question correctly, it sounds like you will want to use the xc_map_foreign_range function from libxc. That function will take an mfn, so you will need to convert the pseudo-physical address and convert it to a machine address first. There are mapping tables in xen to help you do this, but I have only used them for viewing memory from domU, not from the bios.

You might find some useful code in XenAccess as much of these techniques are implemented in there. You can download the code from xenaccess.sf.net.

Cheers,
bryan


-
Bryan D. Payne
Graduate Student, Computer Science
Georgia Tech Information Security Center
http://www.bryanpayne.org



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

<Prev in Thread] Current Thread [Next in Thread>