[dpdk-dev] [PATCH v4 5/8] virtio-user: add device emulation layer APIs

2016-05-11 Thread Yuanhan Liu
On Fri, Apr 29, 2016 at 01:18:33AM +, Jianfeng Tan wrote: > +static int > +kick_one_vq(struct virtio_user_hw *hw, struct virtqueue *vq, > + unsigned queue_sel) Firstly, "dev" is a more common word than "hw" here. So, name the struct to "virtio_user_device", and name the var to "dev".

[dpdk-dev] [PATCH v4 5/8] virtio-user: add device emulation layer APIs

2016-04-29 Thread Jianfeng Tan
Two device emulation layer APIs are added for virtio driver to call: - virtio_user_start_device() - virtio_user_stop_device() These APIs will get called by virtio driver, and they call vhost adapter layer APIs to implement the functionality. Besides, this patch defines a struct named