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] Setting up page directories and tables

To: "Jeremy Fitzhardinge" <jeremy@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Setting up page directories and tables
From: "Dave Pacheco" <dap@xxxxxxxxxxxx>
Date: Tue, 1 May 2007 15:32:56 -0400
Cc: Joel Weinberger <joel@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 01 May 2007 12:31:28 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=VBalpAhaRNI5uYvOXEXsq2eGgTP6YijtCdFdAznWgVumqT6bSDeSqNs+7xkMcxIa9Q1rIw4ISa2w1Gm3nUX4EazzB9k+c4bKQA+20sOciMBIAqCO8QJoobYXRZxji0rZvNYRVpbSbqUvjxpybRHzSbu71kEH0moMqQnbXZUDuoM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=JeqSLzQh+shP41odc53bLBiBgh0OpZypnQzWfGA/7dlXlgdqDOj+I6gcuyg/ot8cQskoH78vik6m9iiJhzqyNL5gv5i91to/iTx4nulHjXc1f6zSpYlYxptEpWWnl4aqcydPLmYNn5LXXJvVtZJGvFYiWcs5LTTmMJ0SneibmQI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46329FF5.5060504@xxxxxxxxxxxxx>
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>
References: <2d88d46a0704271311m4f41aa6bna46cc903bb619f32@xxxxxxxxxxxxxx> <C2582C06.679A%Keir.Fraser@xxxxxxxxxxxx> <2d88d46a0704271756t3968218h9f992ff495a6d48c@xxxxxxxxxxxxxx> <46329FF5.5060504@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 4/27/07, Jeremy Fitzhardinge <jeremy@xxxxxxxxxxxxx> wrote:
I see from your description that you're pinning L1 pages.  That's
generally not how Xen linux kernels do it these days; they just pin the
whole pagetable from L2 down (in your non-PAE case).  Since pinning from
top-down is the same as loading cr3 from a validity-checking
perspective, it's useful to see if Xen likes your pagetables without
actually trashing them (if you load a bad cr3, you end up in limbo with
no useful pagetables, and Xen can't even print a useful stack backtrace
as it destroys your domain).

I don't really understand what you mean here. To "pin the whole pagetable from L2 down" - does that mean pinning the L2 pagetable page itself and then all of the L1 pages, or just the L2 pagetable page?

What exactly does pinning do? Does it simply ensure that the page won't be paged out and that Xen knows it's a page table? If that's the case, it seems like you still want to pin L1 pages so that you know that Xen is okay with your L1 page table.

Thanks,
Dave
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>