From: Samuel Thibault Subject: Re: Mini-OS as dom0, init_mm questions Date: Tue, 27 Oct 2009 16:38:12 +0100 Message-ID: <20091027153812.GD5056@const.bordeaux.inria.fr> References: <20091027150949.GC5056@const.bordeaux.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: LIU Wei Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org LIU Wei, le Tue 27 Oct 2009 23:29:16 +0800, a =E9crit : > 2009/10/27 Samuel Thibault : > > LIU Wei, le Tue 27 Oct 2009 21:18:34 +0800, a =E9crit : > >> =A0 max_pfn: =A0 =A0 =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 b= e > >> c2000000, not 0. How could this possibly go wrong? I am confused. > > > > I am too. Have you somehow modified arch/x86/mm.c? >=20 > 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. >=20 > Another strange thing is, though we get a wrong caculation result here, Mmm, please try to cast the result of PFN_PHYS into (u_long), as the format is %lx, not suitable for uint64_t returned by PFN_PHYS. Samuel