From: Keir Fraser Subject: Re: specifying evtchn ports? Date: Wed, 12 Oct 2005 09:25:14 +0100 Message-ID: <40aac515ceeb8d637a2161e4b3249243@cl.cam.ac.uk> References: <44BDAFB888F59F408FAE3CC35AB47041023104F1@orsmsx409> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <44BDAFB888F59F408FAE3CC35AB47041023104F1@orsmsx409> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "King, Steven R" Cc: xen-devel List List-Id: xen-devel@lists.xenproject.org On 12 Oct 2005, at 01:04, King, Steven R wrote: > Is the intent that userland cannot specify an event channel port > number? > If so, is xen-store the proper way to communicate a port value between > domains? The latest event channel code appears to always allocate a > free port on behalf of the caller for both sides of an interdomain > channel. Older versions allowed the unbound end to specify a port > number. Correct, alloc_unbound() and bind_interdomain() both now allocate one port on behalf of the caller. The caller cannot specify which port that is. > Regarding port types: > > Xen uniformly uses "int" for ports and computes port numbers < 0 as > invalid. This is all great. Userland code could be more consistent by > also using "int" throughout. Using u32 throughout usermode creates > problems for functions with overloaded +port/-error return values. Any > interest here? I guess. There isn't much userland code to modify now. There isn;t much evtchn code left in libxenctrl. -- Keir