[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] mini-os: sbrk() doesn't allocate pages?

  • To: Xen Development Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Gerd Hoffmann <kraxel@xxxxxxxxxx>
  • Date: Thu, 14 Aug 2008 10:42:04 +0200
  • Delivery-date: Thu, 14 Aug 2008 01:42:30 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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



Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.