qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] virtio-net with virtio-mmio
@ 2011-12-28 10:16 Ying-Shiuan Pan
  2011-12-30 12:21 ` Stefan Hajnoczi
  0 siblings, 1 reply; 5+ messages in thread
From: Ying-Shiuan Pan @ 2011-12-28 10:16 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1444 bytes --]

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

end of thread, other threads:[~2012-01-03  6:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-28 10:16 [Qemu-devel] virtio-net with virtio-mmio Ying-Shiuan Pan
2011-12-30 12:21 ` Stefan Hajnoczi
2012-01-02  5:19   ` Ying-Shiuan Pan
2012-01-02 17:19     ` Stefan Hajnoczi
2012-01-03  6:37       ` Ying-Shiuan Pan

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).