WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] Question to memory handling for domU

To: Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Subject: Re: [Xen-ia64-devel] Question to memory handling for domU
From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 10 Aug 2006 16:10:26 +0200
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 10 Aug 2006 07:10:39 -0700
Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; b=nsRcLcFGlOebPfzDi4/N9z/eiu4RfjmcE9QPsuYwshR4Qn0YfADUtB3OAEVltT4CoiIkxfEhH8Xw6qaR7pnrhPnx6zm9ojnYSBm1WRCcf8tntkUEREiqtly3yhyIitMR;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200608101526.53604.Tristan.Gingold@xxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Fujitsu-Siemens-Computers
References: <200608101513.47320.dietmar.hahn@xxxxxxxxxxxxxxxxxxx> <200608101526.53604.Tristan.Gingold@xxxxxxxx>
Reply-to: dietmar.hahn@xxxxxxxxxxxxxxxxxxx
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.3
Hi Tristan,

Am Donnerstag, 10. August 2006 15:26 schrieb Tristan Gingold:
> Le Jeudi 10 Août 2006 15:13, Dietmar Hahn a écrit :
> > Hi,
> >
> > while I was playing with my mini-os and the memory a short question comes
> > up: What memory info is relevant and where gets the domU kernel loaded
> > within the (for domU) configured memory?
>
> domU kernel is loaded at its physical address (IIRC).  Check the ELF
> header.
>
> > I have 128MB configured for domU.
> > start_info->nr_pages gives me 8192 pages -> 128MB.
>
> Seems correct :-)
>
> > The memory given by the efi (EfiConventionalMemory) is physically between
> > 0x200000 and 0x7ff4000 -> ~2MB are absent.
> > Do I have to take this efi memory only, right? How is the absent memory
> > used?
>
> You have memory between 0 and 0x200000.  The start_info page is not in the
> memmap (IIRC).
OK I understand. Between 0 and 0x200000 are the bootinfo, efi and pal stuff.
Between 0x200000 and 0x7ff4000 is the memory usable for mini-os. This includes 
the kernel code and data.
Now only the area between 0x7ff4000 and 0x8000000 is unclear.
Is 0x200000 a fix address?

>
> > My kernel gets loaded to physically address 0x4000000.
> > That means the kernel text and data are nearly in middle of the memory.
> > May this be?
>
> Linux loads at 64MB to be 64MB aligned!  As a consequence it may use large
> page (64MB) to map itself.
I took some infos from the linux linker script.

>
> > If yes - I have to check the this and split the memory to
> > separate the kernel?
>
> Choose the load address you prefer.
But it has to be between 0x200000 and the end of the configured memory?

>
> Will mini-os run in physical or virtual mode ?  I think you don't need to
> use virtual mode.  This will simplify the code a lot!
Currently I switch to virtual mode in _start.

>
> Tristan.
Thanks.

Dietmar.

-- 
Dietmar Hahn               Telephone: +49 (0) 89 636 40274
Fujitsu Siemens Computers  Telefax:   +49 (0) 89 636 40601
Otto-Hahn-Ring 6           Email:     dietmar.hahn@xxxxxxxxxxxxxxxxxxx
81739 München, Germany     Internet:  http://www.fujitsu-siemens.com

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel