|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
Re: [Xen-devel] [PATCH] Unallocate function for memory regions	created b 
| 
On 22 Aug 2005, at 11:09, Ross C Mcilroy wrote:
 
Hi,
This patch provides a function which allows a domain to reclaim 
memory used by the allocate_empty_lowmem_region.  It should allow a 
module to reclaim any memory which was released to Xen for foreign 
grant table access.
 
This could be implemented much more simply. Add a balloon interface 
function balloon_dealloc_empty_page_range(struct page *page, long 
nr_pfns). 
This function can simply iterate over the page range, 
balloon_append()ing each page. Then kick the balloon worker thread and 
you're done! 
Call that balloon function direct from your driver(s) (ie., don't 
bother defining a wrapper function in mm/hypervsior.c). 
alloc_lowmem_region will probably also get moved to the balloon driver 
at some point. 
 -- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 | 
 |  | 
  
    |  |  |