From: LIU Wei Subject: Re: Mini-OS as dom0, init_mm questions Date: Tue, 27 Oct 2009 23:29:16 +0800 Message-ID: References: <20091027150949.GC5056@const.bordeaux.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20091027150949.GC5056@const.bordeaux.inria.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault , LIU Wei , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 2009/10/27 Samuel Thibault : > LIU Wei, le Tue 27 Oct 2009 21:18:34 +0800, a =C3=A9crit : >> =C2=A0 max_pfn: =C2=A0 =C2=A0 =C2=A02000 >> MM: Initialise page allocator for c1079000(1079000)-0(c2000000) > >> According to source code, last physical address of that line should >> be 2000000, not c2000000, and corresponding virtual address should be >> c2000000, not 0. How could this possibly go wrong? I am confused. > > I am too. Have you somehow modified arch/x86/mm.c? > > Samuel > Not yet. I just added some debugging output to help my development. I'm still working on Mini-OS management module, which is making few progress. Another strange thing is, though we get a wrong caculation result here, subsequent cauculations work fine. That means we initialize MM with proper arguments, which is proved by my trace in /* build_pagetable() */. I'm doing development with VMWare, because I don't have another machine to communicate with XEN through a serial port. I don't know if this will ca= use any side effect. I'm wondering if you can offer any advise, I'll be happy to hear that. Regards LIU Wei