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

xen-devel

[Top] [All Lists]

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

To: Daniel Stodden <stodden@xxxxxxxxxx>, Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] free_domheap_pages() leaking xenheap pages?
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: 2007年1月23日 16:32:06 +0000
Delivery-date: 2007年1月23日 08:31:53 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1169569502.29569.23.camel@xxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acc/DAUJQ+FOMqr/EdubbQAX8io7RQ==
Thread-topic: [Xen-devel] free_domheap_pages() leaking xenheap pages?
User-agent: Microsoft-Entourage/11.2.5.060620
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
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-ia64-devel] Re: [Xen-devel] [PATCH 0/5][IA64][HVM] Windowscrashdump support , Tristan Gingold
Next by Date: [Xen-devel] RE: [Xen-users] Does vt-x itself have perf. impact on Hypervisor w/o considering HVM? , Petersson, Mats
Previous by Thread: [Xen-devel] free_domheap_pages() leaking xenheap pages? , Daniel Stodden
Next by Thread: [Xen-devel] PG_foreign undeclared in mm/page_alloc.c , Bruce Montague
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /