From: Keir Fraser Subject: Re: Dom0 initial memory map guarantees Date: Mon, 30 Mar 2009 10:54:23 +0100 Message-ID: References: <49D0A898.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: <49D0A898.76E4.0078.0@novell.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: Jan Beulich , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 30/03/2009 10:10, "Jan Beulich" wrote: > While for DomU's the initial memory map clearly cannot be expected to be > contiguous in MFN space, currently it happens to be that way for (x86) > Dom0 (and even the !NDEBUG case only intentionally breaks this for the > space beyond v_end). > > Without a formal guarantee it would seem fragile, however, to rely on > this. Thus the question is whether it's reasonable to document such a > behavior, or whether instead any such assumption should be forcefully > broken by the Dom0 builder. You can feel free to forcefully break it in debug builds of Xen. We already do for most of dom0's allocation, but we don't bother for the initial memory map. That's just laziness however -- contiguity is not guaranteed. -- Keir