Issue during transmission in my virtio network driver

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
z0rr0
Member
Member
Posts: 64
Joined: Sun Apr 03, 2005 11:00 pm
Location: Grenoble, France
Contact:

Issue during transmission in my virtio network driver

Post by z0rr0 »

Hello everyone, I started to code a driver for a virtio network card for my kernel. The driver is working fine in QEMU on Win64, however, I can't make it work on KVM. On KVM, reception works fine but the transmission stops after the first packet is sent not sure why. Although the driver tries to send another packet, the used index of the transmission queue is never incremented. On QEMU, I see that the device increments the used index. Then, together with the last_used_index I can calculate how many buffers have been used and free them. You can find the code of the driver at: https://github.com/MatiasVara/torokerne ... tIONet.pas
Any comment is welcome!

Cheers, Matias.
z0rr0
Member
Member
Posts: 64
Joined: Sun Apr 03, 2005 11:00 pm
Location: Grenoble, France
Contact:

Re: Issue during transmission in my virtio network driver

Post by z0rr0 »

Never mind, everything started to work in KVM after I replaced "model=virtio" with "model=virtio-net", not sure what changes.

Matias
z0rr0
Member
Member
Posts: 64
Joined: Sun Apr 03, 2005 11:00 pm
Location: Grenoble, France
Contact:

Re: Issue during transmission in my virtio network driver

Post by z0rr0 »

Everything is working well so far, I posted some comments about the network virtio driver that I did in http://torokerneleng.blogspot.com.es/20 ... ivers.html

Cheers,
Post Reply