From: Keir Fraser Subject: Re: interdomain event channel using libxc Date: Fri, 01 Dec 2006 14:17:04 +0000 Message-ID: References: <20061201143812.5cd1db7a.stephan.creutz@inf.tu-dresden.de> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061201143812.5cd1db7a.stephan.creutz@inf.tu-dresden.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: Stephan Creutz , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 1/12/06 13:38, "Stephan Creutz" wrote: > To demonstrate the problem I have two minimal programs (see below). The > first one is running in Dom0, it allocates a port, print it to the > console and waits per select for a notification. The second one reads > the first parameter (which is the remote port), establishes an > interdomain event channel and notifies the program running in Dom0. When > I run these programs (the Dom0 program first and the DomU one next) > nothing happens. The process in Dom0 is blocked in select until the > timeout occures. No error messages are displayed (which has nothing to > say, except my own ignorance). > > What I am doing or getting wrong? Can somebody help me, please? The problem is quite subtle. The libxc function xc_alloc_unbound_port() is intended to allocate an unbound port in *another* domain. It's used only during creation of new domains. To allocate a *local* unbound port you need to define yourself a function along the lines of xc_evtchn_bind_interdomain() but using IOCTL_EVTCHN_BIND_UNBOUND_PORT rather than IOCTL_EVTCHN_BIND_INTERDOMAIN. Probably such a function should be included in libxc, and the existing xc_alloc_unbound_port() function should be given a clearer name. :-) -- Keir