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] Memory management, mapping, paging questions...

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Memory management, mapping, paging questions...
From: nicko.koinkoin@xxxxxxx
Date: Tue, 24 Oct 2006 17:11:37 +0200
Delivery-date: Tue, 24 Oct 2006 07:45:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Internet Messaging Program (IMP) 3.2.5
First hello everybody,

Currently I play with Xen (2.0.7), especially I want to know more about
the memory management. What I understood is that at start-of-day, in the
start_info structure, we have the following information:

nr_pages = Number of machine pages provided for the virtual machine. Represents
           the amount of memory specified in the configuration file (nr_pages *
           4096).
pt_base  = The virtual address of the page directory.
nr_pt_frames = Number of page tables created for the VM by Xen
mfn_list = List of machine adresses.

So my questions are the following :

* pt_base is the virtual adress of the pd. But what means virtual here ? in
which adress space does this adress has the right meaning ?
* Does Xen create the page tables (I do not include the pd in page tables, I
think it is more understable like this, i.e. pd != pt) ? Where are these pt?
their address ?
* mfn_list : is this a list, starting at adress mfn_list, that contains all the
machine adresses of all machine pages allocated for our VM ? i.e. the following
code print all the machine page adresses :
       for (i = 0; i < nr_pages; i++)
              printf("page %d at %x\n", i, ((unsigned long *)mfn_list)[i]);
* If I want to map at identical (machine or physical adress == virtual address),
  how can I do ?

Thanks.

--
Nicolas CLERMONT
Xen player

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

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