From: Keir Fraser Subject: Re: xenbus_dev_write and failed writes Date: Fri, 02 Mar 2007 16:46:50 +0000 Message-ID: References: <20070302163535.GA22543@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070302163535.GA22543@totally.trollied.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 2/3/07 16:35, "John Levon" wrote: > Also, the BUG_ON in xenbusdrv_queue_reply() looks odd to me (in fact the > whole function does). Are we really guaranteed that a reply message will > be less than a page size? And it doesn't seem right to just stomp on the > buffer contents if we wrap right past the consumer value. Yes, it at least makes sense to discard the data rather than BUG. Actually we should dynamically allocate up to some rather larger threshold than 4kB. Will you fix this? -- Keir