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] mini-os: sbrk() doesn't allocate pages?

To: Xen Development Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] mini-os: sbrk() doesn't allocate pages?
From: Gerd Hoffmann <kraxel@xxxxxxxxxx>
Date: Thu, 14 Aug 2008 10:42:04 +0200
Delivery-date: Thu, 14 Aug 2008 01:42:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <48A3E70F.90100@xxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <48A3E70F.90100@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.16 (X11/20080723)
Gerd Hoffmann wrote:
>   Hi,
> 
> I'm wondering how the mini-os heap allocater work.  The sbrk() function
> in mm.c seems to *not* allocate pages for the heap.  Instead it uses the
> zero page and maps it into the heap space when a new page is needed ...
> 
> I can't believe is is supposed to work that way.  Is that a bug?  Did I
> miss some logic somewhere in the code?

Oh, cow in the pagefault handler, that is the missing bit ...

cheers,
  Gerd


-- 
http://kraxel.fedorapeople.org/xenner/

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

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