From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQjm0-0002vf-JM for qemu-devel@nongnu.org; Wed, 06 Aug 2008 10:13:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQjlz-0002vF-0R for qemu-devel@nongnu.org; Wed, 06 Aug 2008 10:13:56 -0400 Received: from [199.232.76.173] (port=57996 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQjly-0002vC-U1 for qemu-devel@nongnu.org; Wed, 06 Aug 2008 10:13:54 -0400 Received: from hs-out-0708.google.com ([64.233.178.245]:16083) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KQjly-0001Xd-RP for qemu-devel@nongnu.org; Wed, 06 Aug 2008 10:13:54 -0400 Received: by hs-out-0708.google.com with SMTP id k27so191840hsc.2 for ; Wed, 06 Aug 2008 07:13:54 -0700 (PDT) Message-ID: <4899B17B.503@codemonkey.ws> Date: Wed, 06 Aug 2008 09:13:15 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] only check RCTL_EN in e1000_can_receive() References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Charles Duffy wrote: > e1000_receive() has code to raise a receive overflow interrupt when > the receive buffer head and tail match. However, with the present > implementation of e1000_can_receive(), this code is unreachable -- and > etherboot breaks as a result. > > The attached quick-and-dirty patch fixes etherboot for e1000, and does > not appear to break post-boot functionality. While this is a legitimate bug, it's probably only present in KVM or when using the slirp rate limiting. Right in QEMU, a can_receive handler for a network card is largely ignored whereas in KVM, it is used to throttle receive for the tap device. Nonetheless, the correct behaviour is to raise an interrupt when a packet could be received but no buffers are available so I've applied this patch. Thanks. Regards, Anthony Liguori