From: Keir Fraser Subject: Re: Problem re-alloc'ing after freeing domheap pages Date: Thu, 13 Nov 2008 23:39:50 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org On 13/11/08 22:32, "Dan Magenheimer" 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