From: Keir Fraser Subject: Re: /proc/xen/xenbus supports watch? Date: Sun, 25 Sep 2005 12:02:42 +0100 Message-ID: <39daa0554066842da8701a90d9f01386@cl.cam.ac.uk> References: <5d7aca9505090801025f3d5771@mail.gmail.com> <3d8eece205090803381b818f18@mail.gmail.com> <1126226609.25110.3.camel@localhost.localdomain> <3d8eece205091302422ac74f77@mail.gmail.com> <1126657264.7896.20.camel@localhost.localdomain> <1126689530.4415.10.camel@localhost.localdomain> <3d8eece205091405555a2871fc@mail.gmail.com> <1126748390.12119.33.camel@localhost.localdomain> <1126945564.29203.116.camel@localhost.localdomain> <1127088661.23870.47.camel@localhost.localdomain> <1127214064.2656.45.camel@localhost.localdomain> <152436486e4a36af94a87ad6d40a768e@cl.cam.ac.uk> <1127354853.7567.6.camel@localhost.localdomain> <1127429689.2722.2.camel@localhost.localdomain> <785f15905b 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: <1127618982.796.71.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Rusty Russell Cc: xen-devel List , Christian Limpach List-Id: xen-devel@lists.xenproject.org On 25 Sep 2005, at 04:29, Rusty Russell wrote: > > I was assuming per-connection, ie. every time a tool > opens /proc/xen/xenbus we map a new page/event channel, and free on > close. ie. the drivers in the domU kernel share the store comms page > created with the domain, tools in the domU get a separate page each, > tools in dom0 connect to the unix domain socket each. To the store, > one > connection, one transport. (Each connection can set up multiple > watches > of course, and Christian has been hinting that he wants multiple > transactions too, but that's another argument). Yeah, I can live with this, although: What about multiple transactions within the kernel? Do you plan to continue serialising them (e.g., on a waitqueue)? An advantage of mux/demux would be that concurrent kernel transactions could easily use the same mechanism. Your scheme places restart mechanisms in user space, so they're out of reach for kernel transactions. -- Keir