From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Chen, Tiejun" Subject: Re: [v8][PATCH 07/16] hvmloader/e820: construct guest e820 table Date: Thu, 16 Jul 2015 23:42:38 +0800 Message-ID: <55A7D0EE.2030203@intel.com> References: <1437029582-19564-1-git-send-email-tiejun.chen@intel.com> <1437029582-19564-8-git-send-email-tiejun.chen@intel.com> <55A7ADAC.1010004@intel.com> <55A7C804.2040101@intel.com> <55A7CABE.4040005@citrix.com> <55A7CDBF.1030104@intel.com> <55A7CEBB.8090701@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <55A7CEBB.8090701@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap , George Dunlap Cc: Keir Fraser , Ian Campbell , Stefano Stabellini , Andrew Cooper , Ian Jackson , "xen-devel@lists.xen.org" , Jan Beulich , Wei Liu List-Id: xen-devel@lists.xenproject.org >> Honestly I didn't try to change that point but maybe I'm missing something? > > Yes, you are missing something. :-) I told you exactly what I wanted > changed and what I said could remain the same: > >>> By all means, calculate high_mem_end so it's easier to read. But then, >>> when creating a new region, set e820[nr].size = add_high_mem, so that >>> the BUG_ON() that follows actually checks something useful. > > Just to be clear, I want the second if() statement to look like this: > >>>> + if ( i == nr ) >>>> + { >>>> + e820[nr].addr = ((uint64_t)1 << 32); >>>> + e820[nr].size = add_high_mem; Ahh, when you're replying this, I also see this difference and realize what you meant. Sorry to this inconvenience and I'll sync this line into my tree :) Thanks Tiejun >>>> + e820[nr].type = E820_RAM; >>>> + nr++; >>>> + } > > Think about why and maybe that will help you understand what I'm talking > about. > > -George >