From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] xenpaging:close domU's event channel and free port Date: Tue, 14 Feb 2012 22:19:05 +0100 Message-ID: <20120214211905.GA23069@aepfle.de> References: <9f4640e40d4f31563885.1328777634@h00166998.china.huawei.com> <20120210164010.GA10009@aepfle.de> <002201ccea12$e83c0420$b8b40c60$@com> <20120214205954.GA21776@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20120214205954.GA21776@aepfle.de> 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 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 Tue, Feb 14, Olaf Hering wrote: > xc: error: Error initialising shared page (28 = No space left on device): Internal error After reading the code more carefully I now see that mem_event_enable() calls alloc_unbound_xen_event_channel() and stores it into med->xen_port. As Tim suggested, your patch should use this value instead of relying on the shared_page pointer. Olaf