From: Mark Williamson Subject: Re: What's allocated on head 1M region of domU? Date: Mon, 3 Dec 2007 17:29:01 +0000 Message-ID: <200712031729.02716.mark.williamson@cl.cam.ac.uk> References: <4750FDC7.50203@hpcs.cs.tsukuba.ac.jp> <200712030254.56617.mark.williamson@cl.cam.ac.uk> <47543702.3000608@hpcs.cs.tsukuba.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <47543702.3000608@hpcs.cs.tsukuba.ac.jp> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ryo Kanbayashi Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > > What error code do you get? Are you trying to map the first meg all at > > once and it's failing, or does it fail if you map any page in the first > > meg? What exactly is the call that's failing? > > > > I guess if you were trying to map the guest's shared_info page then you > > might be disallowed...? > > I try to map no all at once. > I've figured out that top xen kernel is sitting on top 1M region :-| Xen takes the top 64MB or a guest's virtual address space. But I thought you were trying to map the other end? > > See the comments starting around line 476 of xen/include/public/xen.h, > > which describes the start of day memory layout and defines some of the > > structures involved. This will not be the same once the guest is up and > > running because the guest will allocate its own full pagetables and make > > its own decisions about where it wants to put stuff. However, it'll at > > least give you some clues about how the guest is built initially... I > > hope this helps you some. > > I read the parts you suggested to me. > It helps me great :-) Good - those comments are some of the most useful anywhere in the codebase ;-) Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!