Skip to contentSkip to conversation

what's the difference between balloon_alloc_empty_page_range() and alloc_pages()

DISCUSSION Lily Huang 1 participant 1 message Jun 24, 2006

lore
Share & tools
lore

Lily Huang

author
#0 lore raw

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
[email protected]
http://lists.xensource.com/xen-devel