From: Ian Campbell Subject: Re: access shared_info? Date: Fri, 09 Jun 2006 14:59:00 +0100 Message-ID: <1149861540.11958.199.camel@localhost.localdomain> References: <4486D496.1070905@suse.de> <20b4659f13d0ed8c0ee5d23d93579b4c@cl.cam.ac.uk> <4486F676.6080301@suse.de> <7c8cd23f1fb1eafe50db8bf82cadad3a@cl.cam.ac.uk> <4486FE71.9090606@suse.de> <63a099e0b962a2154960cebf413487c2@cl.cam.ac.uk> <44870C65.2030603@suse.de> <20060607215500.GI2724@moss.sous-sol.org> <44897B39.6070100@suse.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <44897B39.6070100@suse.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gerd Hoffmann Cc: Chris Wright , Xen devel list List-Id: xen-devel@lists.xenproject.org On Fri, 2006-06-09 at 15:44 +0200, Gerd Hoffmann wrote: > > > > Or just do this during normal setup, then it is the base e820 map. I > > believe it's already done isn't it? > > > > memmap.nr_entries = 1; > > map[0].addr = 0ULL; > > map[0].size = xen_start_info->nr_pages << PAGE_SHIFT; > > /* 8MB slack (to balance backend allocations). */ > > map[0].size += 8 << 20; > > map[0].type = E820_RAM; > > x86_64 only, seems there are quite some differences in e820 handling ... The same code is in arch/x86_64/kernel/e820-xen.c and include/asm-i386/mach-xen/setup_arch_post.h The x86_64 code has diverged more from native than i386 in this area, it would nice to reign it back in. Ian.