From: "Jan Beulich" Subject: Re: x86-64's paging_init() Date: Fri, 01 Sep 2006 17:38:35 +0200 Message-ID: <44F8701B.76E4.0078.0@novell.com> References: <44F6C94F.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 31.08.06 19:58 >>> >Correct. I suggest either a clean BUG_ON() in virt_to_xen_l2e(), or >allocate-and-map the new l2 in that same function (but raises question of >how to test the new code path). Why in virt_to_xen_l2e()? We likely wouldn't make it there on a system this big, due to earlier memory corruption. But anyway, I'll try to change the code so the code path won't be entirely unused (similar to the dom0 page table setup in contruct_dom0()). Jan >On 31/8/06 10:34 am, "Jan Beulich" wrote: > >> While adding code to create the compatibility p2m table mappings it >> seemed >> to me that the creation of the native ones is restricted to memory below >> the 512G boundary - otherwise, additional L2 tables would need to be >> allocated (currently other memory following the one L2 page getting >> allocated would be blindly overwritten). While I realize that machines >> this >> big aren't likely to be targeted by Xen at this point anyway (although >> the >> direct map area explicitly provides for 1T), I'd still want this fixed >> if >> someone confirms I'm not mis-reading something here (of if that's the >> case, >> then I'd still need a good explanation, as then I'm likely screwing up >> the >> compatibility table creation).