Received: from eggs.gnu.org ([2001:4830:134:3::10]:42823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYSSx-00023h-Bl for qemu-devel@nongnu.org; Wed, 24 Feb 2016 00:58:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYSSs-0005mn-Bk for qemu-devel@nongnu.org; Wed, 24 Feb 2016 00:58:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYSSs-0005mZ-6c for qemu-devel@nongnu.org; Wed, 24 Feb 2016 00:58:22 -0500 Date: Wed, 24 Feb 2016 11:28:15 +0530 (IST) From: P J P In-Reply-To: <56CD0CDA.9050709@redhat.com> Message-ID: References: <1454423392-7732-1-git-send-email-ppandit@redhat.com> <56B465B7.8000201@redhat.com> <56CBD1AF.6090802@redhat.com> <56CD0CDA.9050709@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH] net: ne2000: check ring buffer control registers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: Yang Hongke , QEMU Developers +-- On Wed, 24 Feb 2016, Jason Wang wrote --+ | Right, but since setting STARTPG,STOPPG,BOUNDARY and CURPAG is not | atomic. Try to limit it during value setting is hard to be correct. I see. | Then let's return true when s->stop <= s->start? Okay. Though I'm not sure if it's the right place for it, because more than buffer is full, it says buffer does not exist. | It's really hard to say there's no such driver. Which means if there's | such a driver and it works on real hardware, we need make it work for qemu. I guess better would be to see if the hardware standard specifies such an interface for the driver. I did not find it mentioned anywhere; Even kernel drivers have it fixed. I'll send a revised patch for ne2000_buffer_full(). -- - P J P 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F