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-devel

Re: [Xen-devel] Xen at scale

To: Christian Limpach <chris@xxxxxx>
Subject: Re: [Xen-devel] Xen at scale
From: Kip Macy <kmacy@xxxxxxxxxxx>
Date: Wed, 24 Mar 2004 07:56:48 -0800 (PST)
Cc: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, "MAGENHEIMER,DAN (HP-FtCollins, ex1)" <dan.magenheimer@xxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 24 Mar 2004 16:08:46 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <0b4e01c41199$3c84a150$070414ac@pin>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <E1B65x2-0000IJ-00@xxxxxxxxxxxxxxxxx> <0b4e01c41199$3c84a150$070414ac@pin>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
On FreeBSD i386, there is already a 4MB chunk of VA where the page
tables are mapped - remember that is why the PTD maps itself (as the comment
puts it, recursively). This is the default layout
|  USER         |PTs| KVA     |
  (3GB - 4M)     4M   1GB

I've allocated an extra page-table to the PTOM - for the following VA:

| USER        |PTOM|PTs|  KVA|
  3GB - 8M      4M   4M  1GB

This works well, because all I end up having to do is bump down
VM_MAXUSER_ADDRESS by an extra 4MB. Putting it in the kernel would
disrupt pmap bootstrap. This burns some VA for small memory allocations,
but the same can be said for the PTs and it makes easy for me to put the
PTOM on a single super-page for large memory allocations.

As for DOM0, different guests can have their own setup routines inside Xen.


                        -Kip

On Wed, 24 Mar 2004, Christian Limpach wrote:

> > It needs to be something other than page tables, really. I'm inclined
> > to pass the new domain a preinitialised 'phys->machine' translation
> > table, and only create initial page tables large enough to contain the
> > kernel image, initial page tables, and the translation table. 16MB of
> > VA space would be plenty.
>
> VA should probably have the size of text+data+bss.  My preferred layout
> would be pagetables/pgd/p2m-mapping at the end of the domain's physical
> memory in that order.  And this should then be either mapped at VA 0, end
> aligned with text or end aligned with the hypervisor memory.  I think I'd
> choose end aligned with the hypervisor memory.
>
> > As for breaking the interface to other types of guest OS
> > (ie. non-Linux) -- they can implement their own domain builder that
> > sets memory out just as they like.
>
> How's that supposed to work for non-Linux domain0 guests?
>
>      christian
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>