From: Keir Fraser Subject: Re: [PATCH] Add an ioctl interface for simple xenstore access Date: Mon, 20 Mar 2006 10:08:56 +0000 Message-ID: <3ca5ceaba5bd3dbeeb88ac564a5d51a3@cl.cam.ac.uk> References: <87r750pupr.fsf@caffeine.beaverton.ibm.com> <20060318071405.GD23816@granada.merseine.nu> <01789afa761fc8e2b1f398148de7370c@cl.cam.ac.uk> <441C4B20.4000202@us.ibm.com> <441E69FE.7070307@suse.de> <20060320085205.GA30703@leeni.uk.xensource.com> 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: <20060320085205.GA30703@leeni.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ewan Mellor Cc: Gerd Hoffmann , Xen Developers , Dan Smith List-Id: xen-devel@lists.xenproject.org On 20 Mar 2006, at 08:52, Ewan Mellor wrote: > Watches work in kernel space in domU (the frontends to the split device > drivers use them), but they don't work in userspace there. The > problem is > that there is no support in xenbus for blocking a userspace process > waiting > for a watch to fire. There's no need for special-case blocking in the kernel. The libxenstore reader thread will block on read() and then wake up other threads as necessary by writing to a pipe. All that's needed in the kernel is some bookkeeping to allow demux and teardown if the device file is closed. Some of that can be pushed to xenstored if we extend it to support multiple connections over a single shared page, but it's not really necessary. -- Keir