From: Ian Campbell Subject: Re: [PATCH] libvchan: Make raw_get_{data_ready, buffer_space} match Date: Wed, 21 May 2014 13:01:34 +0100 Message-ID: <1400673694.4856.30.camel@kazak.uk.xensource.com> References: <1400273296-12438-1-git-send-email-andryuk@aero.org> <21369.60334.450961.817480@mariner.uk.xensource.com> <537A67E1.8030906@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <537A67E1.8030906@tycho.nsa.gov> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel De Graaf Cc: Jason Andryuk , Ian Jackson , Rafal Wojtczuk , Stefano Stabellini , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2014-05-19 at 16:21 -0400, Daniel De Graaf wrote: > On 05/19/2014 07:31 AM, Ian Jackson wrote: > > Jason Andryuk writes ("[PATCH] libvchan: Make raw_get_{data_ready,buffer_space} match"): > >> For writing into a vchan, raw_get_buffer_space used >, allowing the full > >> ring size to be written. On the read side, raw_get_data_ready compared > >> the ring size with >=. This mismatch means a completely filled buffer > >> cannot be read. Fix this by making the size checks identical. > > > > This seems right to me, but I have CC'd the authors of this area of > > code to give them a chance to comment. > > > > Thanks, > > Ian. > > This also looks correct to me. Can I take that as an Acked-by frm the both of you? Acked-by: Ian Campbell Ian.