Question

I am trying to understand the virtio mechanism in linux. I read that the kick function will notify the host side about the newly published buffers. I am looking especially at virtio_net.Once a packet is ready for transmission the kick function is called here. From here i traced the call and i think it goes to this. From here where does it go? Which code contains the backend driver of virtio. Where is the code in the hypervisor which this kick will go to? Thank you...

Thanks, Bala

Was it helpful?

Solution

The IO port accesses here are communicating with the "hardware" of the virtual machine, which is implemented by the QEMU instance which supports the VM. The place to start in the QEMU code is virtio_ioport_write() in hw/virtio-pci.c.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top