From: Keir Fraser Subject: Re: [PATCH] Prevent unnatural use of ioctl in /proc/xen/xenbus_dev Date: Fri, 9 Sep 2005 13:48:37 +0100 Message-ID: References: <1126265347.5623.18.camel@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1126265347.5623.18.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 Mailing List , Christian Limpach List-Id: xen-devel@lists.xenproject.org On 9 Sep 2005, at 12:29, Rusty Russell wrote: > xenbus_dev's use of ioctl for read/write is a crime against nature. > Make it a read-write interface, but check boundaries so we can recover > if userspace dies. This also simplifies libxenstore. How can you cleanly express the request/reponse nature of interacting with xenstore, and grouping of accesses into transactions, via read/write? I would imagine you lose valuable framing information that you end up having to reconstruct. -- Keir