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] A question about SHARE_PFN_WITH_DOMAIN

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] A question about SHARE_PFN_WITH_DOMAIN
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: 2006年1月13日 17:19:47 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2006年1月13日 09:26:38 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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: AcYYIgrf+fkJg89tQUSAyj5WNyp/twAAF7yg
Thread-topic: [Xen-devel] A question about SHARE_PFN_WITH_DOMAIN
>From: Keir Fraser
>Sent: 2006年1月13日 17:15
>
>On 13 Jan 2006, at 07:10, Tian, Kevin wrote:
>
>>> Secondly, there is the subtle and thorny issue of domain destruction.
>>> Xen assume that any domain that has a non-zero reference count has a
>>> valid shared_info, for example.
>>
>> Could you please point out where I can find such assumption in the
>> code?
>
>Sure. For example, event channel bindings are torn down only when the
>domain refcnt falls to zero. If we freed the shared_info page when dom0
>kills the domain, the refcnt may remain non-zero for some time after
>that (because of mappings of network/block ring pages for example). If
>dom0 tries to notify via an event channel, the evtchn code in Xen will
>happily dereference the dying domU's shared_info pointer which would no
>longer be valid.
>
>So we cannot free shared_info until domain_destruct(), and if Xen held
>a reference on shared_info then domain_destruct() would never be
>called.
>
> -- Keir
Clear and make sense.
Thanks,
Kevin
_______________________________________________
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-devel] Can not startx in Dom0 , Keir Fraser
Next by Date: RE: [Xen-devel] performance problems... , James Harper
Previous by Thread: Re: [Xen-devel] A question about SHARE_PFN_WITH_DOMAIN , Keir Fraser
Next by Thread: [Xen-devel] Paravirtualization of the "HLT" instruction (for example) on x386 , Ian Brown
Indexes: [Date] [Thread] [Top] [All Lists]

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

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