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] New heap API and scrubbing

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] New heap API and scrubbing
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 10 Feb 2009 05:19:11 +0000
Cc:
Delivery-date: Mon, 09 Feb 2009 21:19:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f4d380ca-b23a-4a6b-adb9-19e9016569eb@default>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmLFixjhrwPZ3s2Q7qGbJ842NGC5AAKO6up
Thread-topic: [Xen-devel] New heap API and scrubbing
User-agent: Microsoft-Entourage/12.15.0.081119
They allocate from the same pool of pages, but they differ very slightly. If
you alloc_fooheap_pages() you must free_fooheap_pages(). You could probably
make the distinction based on is_xenheap_page() if you wanted.

 -- Keir

On 10/02/2009 00:24, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

> So in the new (soon-to-be 3.4) heap API, are
> 
> alloc_domheap_pages(NULL,order,flags)
> 
> and
> 
> alloc_xenheap_pages(order,flags)
> 
> synonomous on 64-bit hypervisors?  I.e. they
> are allocating from the same pool of pages?
> And if so are the matching free routines
> synonomous?
> 
> If not, under what circumstances should one be
> used rather than the other?
> 
> Are there any cases now where free_XXXheap_pages
> might free up pages that could be grabbed by
> another domain and those pages have not been
> scrubbed?
> 
> Thanks,
> Dan
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel