The arg value is being used to get the fd of the backend, in my case, I prefer tap as a backend device. And the same arg value is being used to get the features of backend device. I am actually going only through net.c and in this module they haven't specified anywhere, where this value is coming from. So, you mean that kernel vhost code is connected to QEMU userspace code. I request to guide me in following the code. With hope, Devi. On 10/6/10, Stefan Hajnoczi <stefanha@xxxxxxxxx> wrote: > On Wed, Oct 6, 2010 at 11:16 AM, devi thapa <devi.thapa@xxxxxxxxx> wrote: >> What's the role or value of the third argument in the >> vhost_net_ioctl function in /drivers/vhost/net.c . > > Read the code. There is the kernel vhost code and the QEMU vhost > userspace code to look at. By studying both sides you can figure this > out. > > Look at how arg is used in vhost_net_ioctl(). > > Please spend more time learning how things work before sending > questions to the mailing list. > > Stefan > _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/virtualization