From: Keir Fraser Subject: Re: access shared_info? Date: Thu, 8 Jun 2006 08:32:28 +0100 Message-ID: <3db47d9e9090ba9a9031bc32793fadbe@cl.cam.ac.uk> 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> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060607215500.GI2724@moss.sous-sol.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Chris Wright Cc: Gerd Hoffmann , Xen devel list List-Id: xen-devel@lists.xenproject.org On 7 Jun 2006, at 22:55, Chris Wright wrote: >> /* Nothing to do if not running in dom0. */ >> - if (!(xen_start_info->flags & SIF_INITDOMAIN)) >> + if (!(xen_start_info->flags & SIF_INITDOMAIN)) { >> + struct e820entry domU_e820 = { >> + .addr = 0, >> + .size = max_pfn << PAGE_SHIFT, >> + .type = E820_RAM, >> + }; > > 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; > ... > BUG_ON(copy_e820_map(map, (char)memmap.nr_entries) < 0); Does the existing e820-faking code run early enough to be able to use max_pfn? -- Keir