From: "Lily Huang" Subject: what's the difference between balloon_alloc_empty_page_range() and alloc_pages() Date: Sat, 24 Jun 2006 14:26:44 -0400 Message-ID: <4d616cca0606241126m5341e805of38b7ffafedcc550@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1552668433==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --===============1552668433== Content-Type: multipart/alternative; boundary="----=_Part_35843_17305299.1151173604887" ------=_Part_35843_17305299.1151173604887 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_35843_17305299.1151173604887 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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
------=_Part_35843_17305299.1151173604887-- --===============1552668433== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1552668433==--