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] xc_map_foreign_range() to Map Dom U kernel

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] xc_map_foreign_range() to Map Dom U kernel
From: "Nimgaonkar, Satyajeet" <SatyajeetNimgaonkar@xxxxxxxxxx>
Date: Wed, 20 Apr 2011 18:19:02 +0000
Accept-language: en-US
Delivery-date: Wed, 20 Apr 2011 11:19:44 -0700
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
Thread-index: Acv/heU37ztrPnl2TAiq+GRSU4i0WA==
Thread-topic: xc_map_foreign_range() to Map Dom U kernel
Hi All,
           I am currently trying to map memory from Dom U to Domain 0 using the 
xc_map_foreign_range() function. I am trying to understand some of the 
arguments in xc_map_foreign_range() like int size, int prot and unsigned long 
mfn. 
 I am guessing that the value of mfn indicates the page in Dom U that I wish to 
start mapping from. The size indicates the range of pages as a multiple of Page 
Size and prot indicates Read/Write access. If this is correct,  then how do I 
get the values for these 3 arguments.  Say for instance, If I wanted to map the 
kernel running in the Dom U or even a specific process running in DOM U.?
Can someone please shed some light on it?
Thanks a lot.

Regards,
Jeet

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] xc_map_foreign_range() to Map Dom U kernel, Nimgaonkar, Satyajeet <=