[dpdk-dev] [RFC PATCH 7/7] lib/librte_vhost: Add vhost-user implementation

2014-11-14 Thread Tetsuya Mukawa
(2014/11/14 9:07), Xie, Huawei wrote: >> +struct vhost_device_user_ctx { >> +int *fds; >> +int fd_num; >> +struct vhost_driver *drv; >> +}; >> + >> /* >> * Structure used to identify device context. >> */ >> @@ -83,6 +89,7 @@ struct vhost

[dpdk-dev] [RFC PATCH 7/7] lib/librte_vhost: Add vhost-user implementation

2014-11-14 Thread Xie, Huawei
> +struct vhost_device_user_ctx { > + int *fds; > + int fd_num; > + struct vhost_driver *drv; > +}; > + > /* > * Structure used to identify device context. > */ > @@ -83,6 +89,7 @@ struct vhost_device_ctx { > vhost_driver_type_t

[dpdk-dev] [RFC PATCH 7/7] lib/librte_vhost: Add vhost-user implementation

2014-11-10 Thread Tetsuya Mukawa
Hi Xie, (2014/11/10 17:18), Xie, Huawei wrote: > Tetsuya: > I already did this, :), and will publish the code for review after I do some > cleanup next week. I appreciate it. I guess your implementation assumes that all vhost-user functions you implemented are called by virtio common layer. Is

[dpdk-dev] [RFC PATCH 7/7] lib/librte_vhost: Add vhost-user implementation

2014-11-10 Thread Tetsuya Mukawa
Hi XIe, (2014/11/08 6:25), Xie, Huawei wrote: > How about using client/server model and select/poll event handing mechanism > rather than poll? > The polling could cause periodic jitter. > Sounds nice. I will change like your comment. Thanks, Tetsuya

[dpdk-dev] [RFC PATCH 7/7] lib/librte_vhost: Add vhost-user implementation

2014-11-10 Thread Xie, Huawei
ma.yoshihiro at lab.ntt.co.jp; masutani.hitoshi at lab.ntt.co.jp > Subject: Re: [dpdk-dev] [RFC PATCH 7/7] lib/librte_vhost: Add vhost-user > implementation > > Hi XIe, > > (2014/11/08 6:25), Xie, Huawei wrote: > > How about using client/server model and select/poll eve

[dpdk-dev] [RFC PATCH 7/7] lib/librte_vhost: Add vhost-user implementation

2014-11-07 Thread Xie, Huawei
; To: dev at dpdk.org > Cc: nakajima.yoshihiro at lab.ntt.co.jp; masutani.hitoshi at lab.ntt.co.jp > Subject: [dpdk-dev] [RFC PATCH 7/7] lib/librte_vhost: Add vhost-user > implementation > > This patch adds vhost-user implementation to librte_vhost. > To communicate with vhost-user o

[dpdk-dev] [RFC PATCH 7/7] lib/librte_vhost: Add vhost-user implementation

2014-11-06 Thread Tetsuya Mukawa
This patch adds vhost-user implementation to librte_vhost. To communicate with vhost-user of QEMU, speficy VHOST_DRV_USER as a vhost_driver_type_t variable in rte_vhost_driver_register(). Signed-off-by: Tetsuya Mukawa --- lib/librte_vhost/rte_virtio_net.h | 19 +- lib/librte_vhost/vhost-net-us