From: Jan Kiszka <jan.kiszka@siemens.com>
To: Stefan Weil <sw@weilnetz.de>
Cc: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>,
qemu-devel@nongnu.org, Fabien Chouteau <chouteau@adacore.com>
Subject: Re: [Qemu-devel] [PATCH 2/3] slirp: Fix requeuing of batchq packets in if_start
Date: Wed, 29 Feb 2012 13:02:30 +0100 [thread overview]
Message-ID: <4F4E13D6.7040205@siemens.com> (raw)
In-Reply-To: <4F4D52C2.7050304@weilnetz.de>
On 2012-02-28 23:18, Stefan Weil wrote:
> Am 17.02.2012 16:45, schrieb Jan Kiszka:
>> In case we requeued a packet that was the head of a longer session
>> queue, we failed to restore this ordering. Also, we did not properly
>> deal with changes to Slirp::next_m.
>>
>> Instead of a cumbersome roll back, this fix simply avoids any changes
>> until we know if the packet was actually sent. Both fixes crashes due
>> to inconsistent queues and simplifies the logic.
>>
>> Thanks to Zhi Yong Wu who found the reason for these crashes.
>>
>> CC: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
>> CC: Fabien Chouteau <chouteau@adacore.com>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>> slirp/if.c | 35 +++++++++++++++++++----------------
>> 1 files changed, 19 insertions(+), 16 deletions(-)
>
> Latest QEMU crashed here 4 times with MIPS Malta
> when I tried 'apt-get update' in the guest. See gdb output
> below for details.
>
> I only got the crash with big endian MIPS, not with little
> endian which is strange.
>
> After I reverted the above patch, MIPS Malta worked
> again as before.
>
> So maybe we changed one crash against a new one.
Could you retry with
git://git.kiszka.org/qemu.git queues/slirp
?
TIA,
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2012-02-29 12:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-17 15:45 [Qemu-devel] [PATCH 0/3] slirp: Fix for requeuing crash, cleanups Jan Kiszka
2012-02-17 15:45 ` [Qemu-devel] [PATCH 1/3] slirp: Clean up ifs_init Jan Kiszka
2012-02-17 15:45 ` [Qemu-devel] [PATCH 2/3] slirp: Fix requeuing of batchq packets in if_start Jan Kiszka
2012-02-28 22:18 ` Stefan Weil
2012-02-28 22:52 ` Jan Kiszka
2012-02-29 7:58 ` Jan Kiszka
2012-02-29 12:02 ` Jan Kiszka [this message]
2012-02-17 15:45 ` [Qemu-devel] [PATCH 3/3] slirp: Refactor if_start Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F4E13D6.7040205@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=chouteau@adacore.com \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
--cc=wuzhy@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.