Re: [dpdk-dev] [PATCH v3 5/7] net/virtio_user: add vhost kernel support

2017-01-03 Thread Yuanhan Liu
On Wed, Jan 04, 2017 at 03:59:24AM +, Jianfeng Tan wrote: > +static int > +vhost_kernel_ioctl(struct virtio_user_dev *dev, > +enum vhost_user_request req, > +void *arg) > +{ > + int i, ret = -1; > + uint64_t req_kernel; > + struct vhost_memory_kernel

[dpdk-dev] [PATCH v3 5/7] net/virtio_user: add vhost kernel support

2017-01-03 Thread Jianfeng Tan
This patch add support vhost kernel as the backend for virtio_user. Three main hook functions are added: - vhost_kernel_setup() to open char device, each vq pair needs one vhostfd; - vhost_kernel_ioctl() to communicate control messages with vhost kernel module; - vhost_kernel_enable_q