Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Feb 2007 19:57:59 -0500
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        freebsd-emulation@FreeBSD.org
Cc:        Juergen Lock <nox@FreeBSD.org>
Subject:   Re: [PATCH] QEMU networking with libpcap
Message-ID:  <200702061958.02460.jkim@FreeBSD.org>
In-Reply-To: <200702061748.03125.jkim@FreeBSD.org>
References:  <200702061748.03125.jkim@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 06 February 2007 05:48 pm, Jung-uk Kim wrote:
> I was trying to fix slirp but I have given up because the slirp is
> very 64-bit unfriendly.  In fact, it was taken from FreeBSD's
> src/sys/netinet but it was well before the following commit:
>
> http://docs.freebsd.org/cgi/mid.cgi?199808240747.AAA16217
>
> Unfortunately there were too many changes between slirp code fork
> and this fix.  On top of that, the author bastardized mbuf chain,
> so that we cannot merge this directly.
>
> Instead I found this:
>
> http://qemu-forum.ipi.fi/viewtopic.php?p=5646&sid=494a2df12b48a1e8f
>dca8ae0e7bfb752
>
> and re-wrote most of the code:
>
> http://people.freebsd.org/~jkim/patch-qemu-pcap.diff
>
> The option to use is '-net nic -net pcap' and it should be able to
> pick up right network interface for you.  If not, use '-net nic
> -net pcap,ifname=<YOUR_NIC_HERE>' instead.  But of course, you need
> access to /dev/bpf*.  Modify /etc/devfs.conf or /etc/devfs.rules to
> set permissions right for you.  Downside is host and guest cannot
> talk directly because it uses bpf(4).  And it seems slow for an
> unknown reason on my FreeBSD/amd64 -CURRENT host. :-(  Let me know
> if anyone knows why.

The performance problem is solved and a new patch is uploaded. :-)

Have fun,

Jung-uk Kim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702061958.02460.jkim>