OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 9:05 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Issue during transmission in my virtio network driver
PostPosted: Fri Jan 19, 2018 3:56 am 
Offline
Member
Member

Joined: Sun Apr 03, 2005 11:00 pm
Posts: 61
Location: Grenoble, France
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.


Top
 Profile  
 
 Post subject: Re: Issue during transmission in my virtio network driver
PostPosted: Sat Jan 20, 2018 4:07 pm 
Offline
Member
Member

Joined: Sun Apr 03, 2005 11:00 pm
Posts: 61
Location: Grenoble, France
Never mind, everything started to work in KVM after I replaced "model=virtio" with "model=virtio-net", not sure what changes.

Matias


Top
 Profile  
 
 Post subject: Re: Issue during transmission in my virtio network driver
PostPosted: Fri Jan 26, 2018 5:16 am 
Offline
Member
Member

Joined: Sun Apr 03, 2005 11:00 pm
Posts: 61
Location: Grenoble, France
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,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 288 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group