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

[Xen-devel] what's the difference between balloon_alloc_empty_page_range() and alloc_pages()

  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Lily Huang" <ushuanglily@xxxxxxxxx>
  • Date: Sat, 24 Jun 2006 14:26:44 -0400
  • Delivery-date: Sat, 24 Jun 2006 11:27:04 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=lqAX3G7Z6bT0jRUBISBnxBfkxZNlXwstIFGKg8/xSQ+fXgZ4CUpMRCDSjlaOrBr04UXJiSuo5GzLYeDGVTjX1tdImmxPsQItM2Qbln4r+1Glr1ZwSpA0aZaePnFzLvbARqg+KqzPvForCun3yk3fFEvctzb9kPRJFAA+4X6LWUg=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>


I am writing a xen-based driver. At the backend, I used balloon_alloc_empty_page_range() to allocate multiple pages and maped some pages from the frontend. But when I wrote into the page allocated with balloon_alloc_empty_page_range(), I got memory error. However, after I changed balloon_alloc_empty_page_range() to alloc_pages(). It works for me.

What's the difference between balloon_alloc_empty_page_range() and alloc_pages()? Lookslike balloon_alloc_empty_page_range() allocates pages at low memory, right? Is this the only difference?


Xen-devel mailing list



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