From: Christian Limpach Subject: Re: /proc/xen/xenbus supports watch? Date: Sat, 17 Sep 2005 18:40:03 +0100 Message-ID: <20050917174003.GQ5722@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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1126945564.29203.116.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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Sat, Sep 17, 2005 at 06:26:04PM +1000, Rusty Russell wrote: > What was the reason for wanting multiple transactions per connection? > Changing the interface is going to be a PITA, so we should figure out if > we're going to need that soon... It solves the immediate problem of making the xenbus lock in the kernel driver more fine grained. I'm not too happy with how a userspace program can block all xenbus access for that domain at the moment, even if this is limited to the root user. Additionally, I believe it's necessary to support reconnect to a different store after restore, allowing the store daemon or the xenbus driver to distinguish operations which are part of an incomplete transaction from operations which are not part of a transaction at all. Finally, adding transaction ids later will be a lot more difficult. I also find the current behaviour a bit odd, we support operations outside of transactions but once you start a transaction, every operation you make is part of that transaction. i think we should either require to always be in a transaction or always allow outside of transaction operations. christian