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

[Xen-devel] [NEO 1:1] Nativedom 1:1 Mapping

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [NEO 1:1] Nativedom 1:1 Mapping
From: "Guy Zana" <guy@xxxxxxxxxxxx>
Date: Fri, 21 Sep 2007 03:46:16 -0400
Delivery-date: Fri, 21 Sep 2007 00:48:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acf7nOHWOm+J+TgmQSWCP5gB/ehOoA==
Thread-topic: [NEO 1:1] Nativedom 1:1 Mapping
This patch applies to c/s #15522.
 
Nativedom 1:1 memory enabling - Done by "stealing" memory from Xen's
e820 at 
boot time. The pages are later being allocated to NativeDom using a
special
allocator.
 
    x86-64
    ======
    
    The 512KB-1MB region is remapped (because of the ROMs) to an address
    above 16MB.
 
    As far as NativeDom can see:
        1. The 0-512KB region is marked as USABLE
        2. The 512KB-1MB region is marked as RESERVED
 
    x86-32
    ======
    
    The 0-12MB region is remapped because it contains the ROMs and xen
itself.
    Drawback - If a guest allocates a DMA buffer in this region, there
is a
    chance that the machine would crash.
 
* Setup.c - Added boot parameters & NativeDom memory initialization
* Page_alloc.c - The 1:1 memory allocator was added

The patch may contain small vt-d code chunks, these got in because of
the merge, please disregard them for now.
 
Thanks,
Guy.

Attachment: nativedom-1to1.patch
Description: nativedom-1to1.patch

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