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] Problem re-alloc'ing after freeing domheap pages

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Problem re-alloc'ing after freeing domheap pages
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Thu, 13 Nov 2008 23:39:50 +0000
Cc:
Delivery-date: Thu, 13 Nov 2008 15:40:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <ef88b5b8-eccf-4cf0-8129-4178b8951134@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: AclF6R6bXTjDwLHcEd2xqwAWy6hiGQ==
Thread-topic: [Xen-devel] Problem re-alloc'ing after freeing domheap pages
User-agent: Microsoft-Entourage/11.4.0.080122
On 13/11/08 22:32, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

> This fails for all alloc's in the second while loop.
> 
> Is there something else I need to do when I allocate
> or free a non-anonymous domheap page?  (Note this seems
> to work fine for anonymous domheap pages.)
> 
> Do I maybe need to also do list_del(&p->list)?  Or
> get_page()/put_page() or something like that?

What you describe should work as-is. If domain d were dying then the freed
pages would end up on the scrub list rather than the free list, but that's
presumably not the case here.

 -- Keir



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

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