From: Keir Fraser Subject: Re: ring.h notification hold-off question Date: Sat, 10 Nov 2007 09:40:19 +0000 Message-ID: References: <1194673068.5996.51.camel@thinkpad.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1194673068.5996.51.camel@thinkpad.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: Daniel Stodden , Xen Developers List-Id: xen-devel@lists.xenproject.org On 10/11/07 05:37, "Daniel Stodden" wrote: > b) if __old were UINT_MAX, then the consumer side might/would > set req_event to 0 after catching up right? (req_cons(== req_prod)+1) > now assume __new == __old + 2 then we had > > req_event [0] < __new [1] < __old [INT_MAX] > > i.e. > __new - req_event [1] > __new - __old [-1] > > i.e. _notify=false, which i believe skips a wanted notification. No. req_event==0, new==1, old==UINT_MAX. Then new-req_event==1, new-old==2. Hence a notification will be sent. Case (c) you are also wrong because after the subtractions we cast to an unsigned integer. Hence in the case old