From: byly.useless@tochka.ru (Vitaly Belostotsky)
To: qemu-devel@nongnu.org
Cc: 290569@bugs.debian.org
Subject: Re: [Qemu-devel] qemu tun networking bug
Date: Tue, 12 Jul 2005 14:09:07 +0400 [thread overview]
Message-ID: <20050712100907.GA14898@home.byly.local> (raw)
In-Reply-To: <Pine.LNX.4.61.0507120305200.28371@filer.marasystems.com>
Thank you very much, Henrik,
based on your reply I've found the relevant linux kernel TUN/TAP problem description
in http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.11-rc2
and was able to workaround the problem in my case with the small patch:
--- qemu-0.7.0/vl.c.orig 2005-04-28 00:52:05.000000000 +0400
+++ qemu-0.7.0/vl.c 2005-07-12 13:14:11.583204352 +0400
@@ -1622,7 +1622,7 @@
return -1;
}
memset(&ifr, 0, sizeof(ifr));
- ifr.ifr_flags = IFF_TAP | IFF_NO_PI;
+ ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_ONE_QUEUE;
pstrcpy(ifr.ifr_name, IFNAMSIZ, "tun%d");
ret = ioctl(fd, TUNSETIFF, (void *) &ifr);
if (ret != 0) {
May be the problem deserves mentioning in some qemu docs?
Regards
Vitaly
On Tue, Jul 12, 2005 at 03:09:43AM +0200, Henrik Nordstrom wrote:
> On Tue, 12 Jul 2005, Vitaly Belostotsky wrote:
>
> >I've encountered some network related bug when using qemu with tun
> >and I'm willing to debug it but could you please provide some help.
>
> you may want to try upgrading to the host kernel to 2.6.12. Had quite a
> bit of issues with tun devices "hanging" in earlier Linux-2.6 versions,
> but after I switched to a Fedora Core 4 host running Linux-2.6.12 things
> seems much more stable.
>
> My diagnostics at the time indicated some flow control problem within the
> host kernle tun driver, making the driver stall and not deliver packets to
> the application (qemu). Your findings seems to indicate very similar
> result.
>
> Regards
> Henrik
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
prev parent reply other threads:[~2005-07-12 10:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-11 21:01 [Qemu-devel] qemu tun networking bug Vitaly Belostotsky
2005-07-12 1:09 ` Henrik Nordstrom
2005-07-12 10:09 ` Vitaly Belostotsky [this message]
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=20050712100907.GA14898@home.byly.local \
--to=byly.useless@tochka.ru \
--cc=290569@bugs.debian.org \
--cc=qemu-devel@nongnu.org \
/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 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).