JustKernel

Ray Of Hope

vhost-user

QEMU Networking Vhost-user & Transport Infiniband – series 4, recipient path

Finally got the receive path working from app2 running on server2 to VM2. Now I can see the rx stats in “ifconfig eth0” increasing for every packet transmitted to it. What was the problem: The problem was with the handling of the available ring and used ring. Its a rx case and I was treating […]

Tags: , , , ,

Posted in vhost-user, vhost-user, virtio-net | No Comments »

QEMU Networking Vhost-user & Transport Infiniband – series 3, vring implementation

This description and understanding is based on the vhost-user implementation and the vapp sample application shared by the VirtualOpenSystems. vhost_client.c new_vhost_client() { vhost_client = new client(); //create a new clietn. vhost_client->page_size = VHOST_CLIENT_PAGE_SIZE; vhost_client->memory.nregions = VHOST_CLIENT_VRING_NUM; 2 : 1 for tx and 1 for Rx. each region is backed by the socket and mapped to […]

Tags: , , ,

Posted in vhost-user, virtio-net | No Comments »

QEMU Networking Vhost-user & Transport Infiniband – series 2 – code flow.

hw/virtio/vhost.c static const vhostops user_ops { .backend_type = VHOST_BACKEND_TYPE_USER .vhost_call = vhost_user_call .vhost_status = vhost_user_status } static const vhostops user_ops { .backend_type = VHOST_BACKEND_TYPE_kernel .vhost_call = vhost_kerne_call .vhost_status = 0 } vhost_set_backend_type() { select whether to use vhost-kernel or vhost-user } vhost_user_call() { vhost_dev_init() { 1) set the backend type 2. init the backend //vhost_backend_init […]

Tags: , , , ,

Posted in vhost-user, virtio-net | No Comments »