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: FW: [Xen-devel] Xen + other stuff?

To: "Barry Silverman" <barry@xxxxxxxxx>
Subject: Re: FW: [Xen-devel] Xen + other stuff?
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 13 Nov 2003 20:26:15 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 13 Nov 2003 20:27:32 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Thu, 13 Nov 2003 15:20:53 EST." <IGEMLBGAECDFPIKMIMLCEEBFCFAA.barry@xxxxxxxxx>
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>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> Sorry to be obtuse, but I am quite a detailed technical guy, and I would
> like to understand the limitation at the code level.
> 
> I looked at the code in xi_build.c (is that the right place)? I saw that the
> domain 0 code was copying in the kernel, and initrd images in 1 page at a
> time (and deallocating the pfn after each page was copied). The only thing
> that looked like needed a large chunk of domain 0 virtual address space was
> the pfn array? Is that what is behind the 800mb limit?
> 
> Is the 800Mb an 800Mb physical limit? Could the guests have larger virtual
> address spaces, and just swap (within the guest)?

The limitation is that, without CONFIG_HIGHMEM, Linux requires a
permanent mapping for every physical page that it owns. Since the
Linux kernel's virtual address space starts at 0xC000000, and Xen
reserves all address space above 0xFC000000, that means that there's
about 0xFC000000-0xC0000000 == 0x3C000000 == 960MB of virtual address
space that Xenolinux could possibly use. Some of this is burned on
vmalloc and ioremap areas, bringing thee actual amount available for
permanent virtual-to-physical mapping down to not much more than 800MB.

With CONFIG_HIGHMEM, Linux no longer needs a permanent mapping for
every page it owns. Pages in high memory can be temporarily mapped in
(just as the domain builder does in user space). We'll port this
config option real soon now, and that will mean that every Xenolinux
instance could be allocated anything up to 4GB.

 -- Keir


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel