From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RfqZF-0007PZ-Jm for qemu-devel@nongnu.org; Wed, 28 Dec 2011 05:17:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RfqZE-0004hW-6v for qemu-devel@nongnu.org; Wed, 28 Dec 2011 05:17:05 -0500 Received: from mail-tul01m020-f173.google.com ([209.85.214.173]:59680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RfqZE-0004hO-3m for qemu-devel@nongnu.org; Wed, 28 Dec 2011 05:17:04 -0500 Received: by obcwp18 with SMTP id wp18so8795276obc.4 for ; Wed, 28 Dec 2011 02:17:03 -0800 (PST) MIME-Version: 1.0 From: Ying-Shiuan Pan Date: Wed, 28 Dec 2011 18:16:42 +0800 Message-ID: Content-Type: multipart/alternative; boundary=14dae9399b5510450004b5244dcd Subject: [Qemu-devel] virtio-net with virtio-mmio List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --14dae9399b5510450004b5244dcd Content-Type: text/plain; charset=ISO-8859-1 Hi, all: I'm very interested in virtio-mmio Peter Maydell did for QEMU, (http://lists.nongnu.org/archive/html/qemu-devel/2011-11/msg01870.html) actually, I've tested the virtio-blk, and it is working. I applied those patch to QEMU-1.0 and brought the virtio_mmio.c from Linux-3.2-rc back to Linux-linaro-2.6.38. I also found a small bug in virito-mmio.c: virtio_mmio_write(), Peter forgot to break in each case of switch block. After fixed the small bug, the virtio-balloon works as well. Then, when I attempted to enable the virtio-net, the initialization part is fine, however, the QEMU crashed and printed this message: "virtio-net header not in first element" It happens when the front-end virtio-net is invoking virtqueue_kick() at the end of try_fill_recv(). Then, QEMU gets this message and invokes virtio_net_receive(), then the error happens. The parameters I passed to qemu-system-arm is qemu-system-arm XXXXXXX -netdev type=tap,id=mynet -global virtio-net-mmio.netdev=mynet I don't know this is correct or not. Does anyone have any idea of this problem? Or give me some directions to solve this bug? Any comment is welcome. I really appreciate your help!! ---- Best Regards, Ying-Shiuan Pan --14dae9399b5510450004b5244dcd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, all:

I'm very interested in virtio-mmio Peter Maydell did fo= r QEMU,
(http://lists.nongnu.org/archive/html/qemu-devel/2011-11/= msg01870.html)

actually, I've tested the virtio-blk, and it is working.
I appli= ed those patch to QEMU-1.0 and brought the virtio_mmio.c from Linux-3.2-rc = back to Linux-linaro-2.6.38.

I also found a small bug in virito-mmio= .c: virtio_mmio_write(),
Peter forgot to break in each case of switch block.
After fixed the smal= l bug, the virtio-balloon works as well.

Then, when I attempted to e= nable the virtio-net, the initialization part is fine,
however, the QEMU= crashed and printed this message:
"virtio-net header not in first element"

It happens when t= he front-end virtio-net is invoking virtqueue_kick() at
the end of try_= fill_recv().
Then, QEMU gets this message and invokes virtio_net_receive= (), then the
error happens.

The parameters I passed to qemu-system-arm is
qemu= -system-arm XXXXXXX -netdev type=3Dtap,id=3Dmynet -global
virtio-net-mm= io.netdev=3Dmynet
I don't know this is correct or not.

Does a= nyone have any idea of this problem?
Or give me some directions to solve this bug?

Any comment is welcome= . I really appreciate your help!!


----
Best Regards,
Ying-= Shiuan Pan --14dae9399b5510450004b5244dcd--