From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAHRL-000265-2c for qemu-devel@nongnu.org; Wed, 22 Sep 2004 20:26:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAHRJ-00025L-8i for qemu-devel@nongnu.org; Wed, 22 Sep 2004 20:26:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAHRJ-00025I-6D for qemu-devel@nongnu.org; Wed, 22 Sep 2004 20:26:25 -0400 Received: from [168.150.242.40] (helo=sauron.wormley.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CAHKy-00005M-EX for qemu-devel@nongnu.org; Wed, 22 Sep 2004 20:19:52 -0400 Date: Wed, 22 Sep 2004 17:19:51 -0700 From: Steve Wormley Message-ID: <20040923001951.GA21261@wormley.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] Network Issue with NE2k-PCI (fix?) 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 I was having serious performance issues with Win2000 Guest and the NE2k in qemu, things like pings of up to 16000ms lost packets, etc. I chased down the problem and it appears that the following fix resolved the issue on my system. Now pings are: 151 packets transmitted, 151 packets received, 0% packet loss round-trip min/avg/max = 2.207/17.174/195.239 ms --- qemu/hw/i8259.c Sun Jun 20 05:58:36 2004 +++ qemu-sw/hw/i8259.c Wed Sep 22 10:49:17 2004 @@ -188,7 +196,11 @@ } else { s->isr |= (1 << irq); } + /* We don't clear a level sensitive interrupt here */ + if (!(s->elcr & (1 << irq))) { s->irr &= ~(1 << irq); + }; + } int cpu_get_pic_interrupt(CPUState *env)