From: "Dave Pacheco" Subject: Re: Setting up page directories and tables Date: Tue, 1 May 2007 15:32:56 -0400 Message-ID: <2d88d46a0705011232m255baf48rd9fda96026ebd64f@mail.gmail.com> References: <2d88d46a0704271311m4f41aa6bna46cc903bb619f32@mail.gmail.com> <2d88d46a0704271756t3968218h9f992ff495a6d48c@mail.gmail.com> <46329FF5.5060504@xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0439824248==" Return-path: In-Reply-To: <46329FF5.5060504@xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: Joel Weinberger , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0439824248== Content-Type: multipart/alternative; boundary="----=_Part_78419_14982404.1178047976568" ------=_Part_78419_14982404.1178047976568 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/27/07, Jeremy Fitzhardinge 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 ------=_Part_78419_14982404.1178047976568 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/27/07, Jeremy Fitzhardinge <jeremy@xensource.com> 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
------=_Part_78419_14982404.1178047976568-- --===============0439824248== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0439824248==--