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 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Unallocate function for memory regions created b

To: "Ross C Mcilroy" <mcilrorc@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Unallocate function for memory regions created by allocate_empty_lowmem_region
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 22 Aug 2005 11:34:54 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 22 Aug 2005 10:28:30 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <260002866C8EBA4EA0AD853F467EC11E04AD22@xxxxxxxxxxxxxxxxxxxx>
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>
References: <260002866C8EBA4EA0AD853F467EC11E04AD22@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

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

<Prev in Thread] Current Thread [Next in Thread>