From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] x86/mm: Make sure the event channel is released accurately Date: Fri, 17 Feb 2012 08:38:29 +0100 Message-ID: <20120217073829.GA21330@aepfle.de> References: <9fd12f919ddbd1592711.1329462943@h00166998.china.huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <9fd12f919ddbd1592711.1329462943@h00166998.china.huawei.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: hongkaixing@huawei.com Cc: bicky.shi@huawei.com, xiaowei.yang@huawei.com, xen-devel@lists.xensource.com, yanqiangjun@huawei.com, hanweidong@huawei.com List-Id: xen-devel@lists.xenproject.org On Fri, Feb 17, hongkaixing@huawei.com wrote: > In xenpaging source code,there is an interdomain communication between dom0 > and domU. In mem_event_enable(),the function alloc_unbound_xen_event_channel() > allocates a free port for domU, and then it will be bound with dom0. > When xenpaging tears down,it just frees dom0's event channel port by > xc_evtchn_unbind(), leaves domU's port still occupied. > So we add the patch to free domU's port when xenpaging exits. > We need double free interdomain eventchannel. First free domainU port, > and leave domain 0 port unbond, Then free domain 0 port. > > Signed-off-by??Kaixing Hong , > Signed-off-by??Zhen Shi Acked-by: Olaf Hering