Skip to contentSkip to conversation

Network Issue with NE2k-PCI (fix?)

Qemu-devel Applied Steve Wormley 2 participants 2 messages Sep 23, 2004 – Sep 29, 2004

lore
Share & tools
lore
#0 lore raw

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

hw/i8259.c +4 -0
@@ -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)
#1 lore raw

Applied.

Fabrice.

Quoted 34 lines · Steve Wormley

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

hw/i8259.c +4 -0
@@ -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)

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel