From: Keir Fraser Subject: Re: /proc/xen/xenbus supports watch? Date: Sun, 25 Sep 2005 12:09:15 +0100 Message-ID: <4ba3195147df19b9de13bec776083940@cl.cam.ac.uk> References: <5d7aca9505090801025f3d5771@mail.gmail.com> <1126945564.29203.116.camel@localhost.localdomain> <1127088661.23870.47.camel@localhost.localdomain> <1127214064.2656.45.camel@localhost.localdomain> <61d8a8d77f6cbe2402b6a05810bd9447@cl.cam.ac.uk> <1127355755.7567.24.camel@localhost.localdomain> <4f7ac507bdbff3eafe3d0aaba1446e41@cl.cam.ac.uk> <1127433079.2722.24.camel@localhost.localdomain> <1127609824.796.28.camel@localhost.localdomain> 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: <1127609824.796.28.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: Andrew Warfield , xen-devel List , Steven Hand , Christian Limpach List-Id: xen-devel@lists.xenproject.org On 25 Sep 2005, at 01:57, Rusty Russell wrote: > Now, we already have this "domain won't save until transactions are > done" simply because we use a single big lock, but this discussion > started because we want to get rid of that lock for /proc/xen/xenbus > (it's fine for drivers). I think we should do so, but keep this > wont-save-during-transactions semantic; it means a waitqueue etc, but I > don't think it's too bad. As you say, our transactions are pretty > small. > > Do people like this more? Blocking system progress on arbitrary user apps doesn't sound particularly attractive to me, but I guess it is at least simple. I'm more inclined to EAGAIN on read/write, maybe sugared by exceptions in languages that support them, or setjmp/longjmp to get you back to the outermost scope of the transaction. I agree that's not pretty either, though. How will you handle 'xenstored restart'? You can't really guarantee that to always happen at opportune moments with no transactions in flight. -- Keir