qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/5] slirp: Fix for requeuing crash, cleanups
@ 2012-03-08 11:35 Jan Kiszka
  2012-03-08 11:35 ` [Qemu-devel] [PATCH v3 1/5] slirp: Keep next_m always valid Jan Kiszka
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jan Kiszka @ 2012-03-08 11:35 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stefan Weil, Zhi Yong Wu, Fabien Chouteau, Michael S. Tsirkin

Well, this requeuing bug seems to have a long breath. Previous attempts
to fix it (mine included) neglected the fact that we need to walk the
queue of pending packets, not just restart from the beginning after a
requeue. This version should get it Right(TM).

This also comes with a fix for resource cleanups on slirp shutdown. At
least valgrind is happy now.

Changes in v3:
 - Finally fixed Stefan's scenario by avoiding the recursion of if_start
 - Fixed further corner cases in walking the packet queues

CC: Fabien Chouteau <chouteau@adacore.com>
CC: Michael S. Tsirkin <mst@redhat.com>
CC: Stefan Weil <sw@weilnetz.de>
CC: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>

Jan Kiszka (5):
  slirp: Keep next_m always valid
  slirp: Prevent recursion of if_start
  slirp: Fix queue walking in if_start
  slirp: Remove unneeded if_queued
  slirp: Cleanup resources on instance removal

 slirp/if.c       |   86 ++++++++++++++++++++++++++++++++++-------------------
 slirp/ip_icmp.c  |    7 ++++
 slirp/ip_icmp.h  |    1 +
 slirp/ip_input.c |    7 ++++
 slirp/mbuf.c     |   21 +++++++++++++
 slirp/mbuf.h     |    1 +
 slirp/slirp.c    |   10 ++----
 slirp/slirp.h    |    4 ++-
 slirp/tcp_subr.c |    7 ++++
 slirp/udp.c      |    8 +++++
 slirp/udp.h      |    1 +
 11 files changed, 115 insertions(+), 38 deletions(-)

-- 
1.7.3.4

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

end of thread, other threads:[~2012-03-08 11:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08 11:35 [Qemu-devel] [PATCH v3 0/5] slirp: Fix for requeuing crash, cleanups Jan Kiszka
2012-03-08 11:35 ` [Qemu-devel] [PATCH v3 1/5] slirp: Keep next_m always valid Jan Kiszka
2012-03-08 11:35 ` [Qemu-devel] [PATCH v3 2/5] slirp: Prevent recursion of if_start Jan Kiszka
2012-03-08 11:35 ` [Qemu-devel] [PATCH v3 3/5] slirp: Fix queue walking in if_start Jan Kiszka
2012-03-08 11:35 ` [Qemu-devel] [PATCH v3 4/5] slirp: Remove unneeded if_queued Jan Kiszka
2012-03-08 11:35 ` [Qemu-devel] [PATCH v3 5/5] slirp: Cleanup resources on instance removal Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).