Huang2, Wei
2007-Apr-03 06:25 UTC
[Xen-devel] Question regarding the number of P2M l3e entries
In p2m.c (line 197 and line 550), the code assumes the number of L3 P2M table entries is 8 (under PAE mode). According to Intel and AMD specs, it is 4. Could someone explain this discrepancy? Is it a bug? -Wei _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2007-Apr-03 06:33 UTC
Re: [Xen-devel] Question regarding the number of P2M l3e entries
See the comment just above line 197. The P2M is a special extended¹ PAE pagetable with double the number of top-level slots. This gives PAE guests an 8GB pseudophysical address space. OF course if the P2M is actually used as a shadow pagetable (i.e., because an HVM guest has paging disabled) then only the first four slots will be used for the shadow pagetable, and only the first 4GB of the pseuodphysical address space will be accessible from guest context. -- Keir On 3/4/07 07:25, "Huang2, Wei" <Wei.Huang2@amd.com> wrote:> In p2m.c (line 197 and line 550), the code assumes the number of L3 P2M table > entries is 8 (under PAE mode). According to Intel and AMD specs, it is 4. > Could someone explain this discrepancy? Is it a bug? > > -Wei > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Pratt
2007-Apr-03 09:34 UTC
RE: [Xen-devel] Question regarding the number of P2M l3e entries
> In p2m.c (line 197 and line 550), the code assumes the number > of L3 P2M table entries is 8 (under PAE mode). According to > Intel and AMD specs, it is 4. Could someone explain this > discrepancy? Is it a bug?The P2M table maps guest physical addresses to machine addresses. 32b PAE guests may have up to 8GB of RAM on current 32b Xen, hence 8 slots. On 64b Xen you can give them the PAE max of 64GB RAM (in fact, you could actually give them more than 64GB as the physical address width limit no longer applies -- you might have to hack the guest to accept the RAM, though). Ian _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Maybe Matching Threads
- [PATCH] patch to support super page (2M) with EPT
- [PATCH] xen/p2m: Fix one by off error in checking the P2M tree directory.
- [PATCH] x86/mm: fix invalid unlinking of nested p2m tables
- [PATCH] arm: allocate top level p2m page for all non-idle VCPUs
- [PATCH][PAGING][P2M][1/1] Common Interface for P2M table