From: Tim Deegan Subject: Re: Re: what's the purpose of linear page table (PML4 entry 258) Date: Tue, 1 Apr 2008 08:52:18 +0000 Message-ID: <20080401085218.GC4628@york.uk.xensource.com> References: <20080401084758.GB4628@york.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <20080401084758.GB4628@york.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: weiming Cc: xen-devel List-Id: xen-devel@lists.xenproject.org At 08:47 +0000 on 01 Apr (1207039678), Tim Deegan wrote: > At 14:15 -0400 on 31 Mar (1206972951), weiming wrote: > > I find that it give the same pte value as I manually walking the 4 level > > page table directory. > > So I guest it facilitates the locating of a pte from va. It removes the > > 4-level looking up process: pgd->pud->pmd->pt->pte > > It saves time. Am I right? > > IIRC, it just does that walk internally and hands back the answer. Excuse me, not enough coffee. Yes, it uses the linear mapping of the pagetable to save time. Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]