All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Network Issue with NE2k-PCI (fix?)
@ 2004-09-23  0:19 Steve Wormley
  2004-09-29 21:57 ` Fabrice Bellard
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Wormley @ 2004-09-23  0:19 UTC (permalink / raw)
  To: qemu-devel


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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Network Issue with NE2k-PCI (fix?)
  2004-09-23  0:19 [Qemu-devel] Network Issue with NE2k-PCI (fix?) Steve Wormley
@ 2004-09-29 21:57 ` Fabrice Bellard
  0 siblings, 0 replies; 2+ messages in thread
From: Fabrice Bellard @ 2004-09-29 21:57 UTC (permalink / raw)
  To: qemu-devel

Applied.

Fabrice.

Steve Wormley wrote:
> 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)
> 
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-29 22:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-23  0:19 [Qemu-devel] Network Issue with NE2k-PCI (fix?) Steve Wormley
2004-09-29 21:57 ` Fabrice Bellard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.