[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] free_domheap_pages() leaking xenheap pages?


  • To: Daniel Stodden <stodden@xxxxxxxxxx>, Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxxxxxxxx>
  • Date: Tue, 23 Jan 2007 16:32:06 +0000
  • Delivery-date: Tue, 23 Jan 2007 08:31:53 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acc/DAUJQ+FOMqr/EdubbQAX8io7RQ==
  • Thread-topic: [Xen-devel] free_domheap_pages() leaking xenheap pages?

On 23/1/07 16:25, "Daniel Stodden" <stodden@xxxxxxxxxx> wrote:

> the page range remains unlisted upon return, and if there's any later
> point in the domain life cycle where these pages would ever return to
> the xen heap, i'm unable to find it.

There are very few xenheap pages that are ever shared with guests. These are
shared_info and grant-table pages. We don't want the pages to be completely
freed until the hypervisor is done with them which is not until
domain_destruct(). But Xen itself cannot keep an explicit reference on the
pages since that would stop the domain reference count ever falling to zero,
which would prevent domain_destruct() from ever being called! So Xen does
not increment the reference count and instead takes responsibility for
'manually' freeing the pages in domain_destruct() (at which point we know
that there are no other references to those pages).

 -- Keir


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.