From: Tim Deegan Subject: Re: Re: what's the purpose of linear page table (PML4 entry 258) Date: Tue, 1 Apr 2008 08:47:58 +0000 Message-ID: <20080401084758.GB4628@york.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: 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 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. I don't recall off the top of my head why Michael introduced it except that it was necessary for shadowing some kinds of PV guests. It may have been to do with the way the shadow-pagetable spinlocks used to work. Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]