From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Yang, Xiaowei" Subject: Re: [PATCH] Fix domheap structure allocation when NUMA=on Date: Fri, 20 Mar 2009 16:34:31 +0800 Message-ID: <49C35517.7040706@intel.com> References: <49C32413.2030505@intel.com> <49C35EA9.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49C35EA9.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 Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Jan Beulich wrote: >>>> "Yang, Xiaowei" 20.03.09 06:05 >>> >> DIRECTMAP_VIRT_END can't be passed to virt_to_mfn(), as it's just beyond >> direct map boundary and triggers ASSERT very early at boot time. > > While I agree to the analysis, I would think that this > > + mfn + needed <= virt_to_mfn(DIRECTMAP_VIRT_END - PAGE_SIZE) ) > > should rather be > > + mfn + needed <= virt_to_mfn(DIRECTMAP_VIRT_END - 1) + 1 ) > virt_to_mfn(DIRECTMAP_VIRT_END - 1) is equal to virt_to_mfn(DIRECTMAP_VIRT_END - PAGE_SIZE). Why +1? We use '<=' here. Thanks, xiaowei