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] pagetable handling in xen

To: "Aaron J. Marks" <ajmarks@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] pagetable handling in xen
From: Steven Hand <Steven.Hand@xxxxxxxxxxxx>
Date: Thu, 03 Nov 2005 15:15:37 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 03 Nov 2005 15:12:45 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: Message from "Aaron J. Marks" <ajmarks@xxxxxxxxxxxxxx> of "Thu, 03 Nov 2005 10:11:53 EST." <Pine.GSO.4.58.0511031006460.15715@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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> On Mon, 24 Oct 2005, Aaron J. Marks wrote:
> 
> > i'm trying to understand how xen handles pagetables, but i'm a bit
> > confused:
> >
> > 1. where is a new domain's memory mapping initialized in xen?
> > 2. what're the differences between idle_pg_table and linear_pg_table and
> > are they indexed by guest linear page #s or hardware page #s?
> > 3. [this is more of an affirmation, than a question] xen can't arbitrarily
> > access *any* physical page because it doesn't map all of physical
> > memory (eg, like linux does from PAGE_OFFSET)?
> 
> okay, after staring at the code for a while (too long), i think i
> understand 1 & 2. however, i'm still uncertain about #3.
> 
> i'd like to be able to iterate over every page table of every domain from
> *within* xen. is this possible? i guess the basic mechanism that i need is
> to be able to temporarily map a domain's machine pages into xen address
> space, do the traversal, then unmap (and repeat for each domain).

Yes (at least if you're talking about 32 bit). 

Take a look at the functions map_domain_page() and unmap_domain_page()
in xen/arch/x86/x86_32/domain_page.c


cheers,

S.


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

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