From: nicko.koinkoin@free.fr Subject: Memory management, mapping, paging questions... Date: Tue, 24 Oct 2006 17:11:37 +0200 Message-ID: <1161702697.453e2d2969d33@imp8-g19.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 =3D Number of machine pages provided for the virtual machine. Re= presents the amount of memory specified in the configuration file (nr_p= ages * 4096). pt_base =3D The virtual address of the page directory. nr_pt_frames =3D Number of page tables created for the VM by Xen mfn_list =3D 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 !=3D pt) ? Where are thes= e pt? their address ? * mfn_list : is this a list, starting at adress mfn_list, that contains a= ll the machine adresses of all machine pages allocated for our VM ? i.e. the fol= lowing code print all the machine page adresses : for (i =3D 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 =3D=3D virtua= l address), how can I do ? Thanks. -- Nicolas CLERMONT Xen player