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] Get MFN from the pv linux guest

To: Steven <wangwangkang@xxxxxxxxx>
Subject: Re: [Xen-devel] Get MFN from the pv linux guest
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Tue, 15 Nov 2011 08:49:03 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 15 Nov 2011 00:49:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAMTrTqUup+6W80fTW_gsk62Bu0un-0G9MJKkVsnZ0LYV6nOniA@xxxxxxxxxxxxxx>
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>
Organization: Citrix Systems, Inc.
References: <CAMTrTqUup+6W80fTW_gsk62Bu0un-0G9MJKkVsnZ0LYV6nOniA@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2011-11-15 at 05:06 +0000, Steven wrote:
> Dear All,
> I am trying get the machine frame number of the corresponding
> pseudo-physical page number in a PV Linux guest.
> Could anyone suggest which data structure I have to take a look? Thanks.

You need to look up in the p2m table. This is maintained by the guest OS
so the method for accessing it is a bit kernel specific but there is
generally a function like pfn_to_mfn() or so.

Ian.


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

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