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

xen-devel

[Top] [All Lists]

[Xen-devel] what's the difference between balloon_alloc_empty_page_range

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] what's the difference between balloon_alloc_empty_page_range() and alloc_pages()
From: "Lily Huang" <ushuanglily@xxxxxxxxx>
Date: 2006年6月24日 14:26:44 -0400
Delivery-date: 2006年6月24日 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=
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
Hi,

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?

Thanks,

lily
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] what's the difference between balloon_alloc_empty_page_range() and alloc_pages(), Lily Huang <=
Previous by Date: Re: [Xen-devel] [PATCH] balloon: don't talk about low/high memory when there is no such distinction , Anthony Liguori
Next by Date: THANK YOU , Mrs.Regina Ahmed
Previous by Thread: [Xen-devel] [PATCH] VTPM Tools HotPlug Script enabled , Scarlata, Vincent R
Next by Thread: THANK YOU , Mrs.Regina Ahmed
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /