From: Keir Fraser Subject: Re: sparse M2P table Date: Thu, 17 Sep 2009 09:02:01 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: 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: "Jiang, Yunhong" , Jan Beulich Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 17/09/2009 08:28, "Jiang, Yunhong" wrote: >> The only structure in Xen that I think doesn't just work with >> expanding its virtual memory allocation and sparse-mapping is the '1:1 >> memory mapping'. >> Because to address such large sparse memory maps, the virtual memory >> allocation would be too large. So I'm guessing the '1:1 memory >> map' area >> will end up divided into say 1TB strips with phys_to_virt() executing >> a radix-tree lookup to map physical address ranges onto those >> dynamically-allocated strips. > > Yes, and the strip size maybe dynamic determined. > > Also if we will always keep the 1:1 memory mapping for all memory? Currently > we have at most 5TB virtual address for the 1:1 mapping, hopefully it will > work for most system now. Yeah, I think 5TB will just about do us for now. ;-) After all, I think the biggest machine Xen has been tested on so far is 256GB. -- Keir