[dpdk-dev] [RFC PATCH v2 00/14] qemu vhost-user support

Linhaifeng haifeng.lin at huawei.com
Mon Feb 9 08:52:06 CET 2015


Hi, Xie

Is librte_vhost support openvswitch?
How to attach the vhost_device_ctx to the port of openvswitch?

On 2015/1/26 11:20, Huawei Xie wrote:
> v2 changes:
>  make fdset num field reflect the current number of fds vhost server manages
>  allocate context for connected fd in vserver_new_vq_conn
>  enable multiple socket support
>  get_feature fix: apply Tetsuya's comment
>  set_feature fix
>  close received log fd, err fd: apply Haifeng's comment 
>  CTRL_VQ fix
>  set ifname to unix domain socket path
>  change the context type from uint64_t to void * in event management
>  other code rework
> 
> Huawei Xie (14):
>   turn on VIRTIO_NET_F_CTRL_RX is dependant on VIRTIO_NET_F_CTRL_VQ.    
>   create vhost_cuse directory
>   rename vhost-net-cdev.h to vhost-net.h
>   consistent print style
>   implement the eventfd copying(from fd in qemu process to fd in vhost process) into vhost-net-cdev.c
>   copy host_memory_map from virtio-net.c to a new file virtio-net-cdev.c
>   host_memory_map
>   split set_memory_table into two parts
>   add select based event driven fd management logic
>   vhost user support
>   vhost user memory region map
>   cleanup when vhost user connection is closed
>   multiple socket support
>   vhost user ifr_name support
> 
>  lib/librte_vhost/Makefile                     |   5 +-
>  lib/librte_vhost/rte_virtio_net.h             |   5 +-
>  lib/librte_vhost/vhost-net-cdev.c             | 389 ----------------------
>  lib/librte_vhost/vhost-net-cdev.h             | 113 -------
>  lib/librte_vhost/vhost-net.h                  | 121 +++++++
>  lib/librte_vhost/vhost_cuse/eventfd_copy.c    |  89 +++++
>  lib/librte_vhost/vhost_cuse/eventfd_copy.h    |  40 +++
>  lib/librte_vhost/vhost_cuse/vhost-net-cdev.c  | 414 +++++++++++++++++++++++
>  lib/librte_vhost/vhost_cuse/virtio-net-cdev.c | 401 ++++++++++++++++++++++
>  lib/librte_vhost/vhost_cuse/virtio-net-cdev.h |  48 +++
>  lib/librte_vhost/vhost_rxtx.c                 |   5 +-
>  lib/librte_vhost/vhost_user/fd_man.c          | 207 ++++++++++++
>  lib/librte_vhost/vhost_user/fd_man.h          |  64 ++++
>  lib/librte_vhost/vhost_user/vhost-net-user.c  | 462 ++++++++++++++++++++++++++
>  lib/librte_vhost/vhost_user/vhost-net-user.h  | 106 ++++++
>  lib/librte_vhost/vhost_user/virtio-net-user.c | 322 ++++++++++++++++++
>  lib/librte_vhost/vhost_user/virtio-net-user.h |  49 +++
>  lib/librte_vhost/virtio-net.c                 | 455 +++----------------------
>  lib/librte_vhost/virtio-net.h                 |  43 +++
>  19 files changed, 2419 insertions(+), 919 deletions(-)
>  delete mode 100644 lib/librte_vhost/vhost-net-cdev.c
>  delete mode 100644 lib/librte_vhost/vhost-net-cdev.h
>  create mode 100644 lib/librte_vhost/vhost-net.h
>  create mode 100644 lib/librte_vhost/vhost_cuse/eventfd_copy.c
>  create mode 100644 lib/librte_vhost/vhost_cuse/eventfd_copy.h
>  create mode 100644 lib/librte_vhost/vhost_cuse/vhost-net-cdev.c
>  create mode 100644 lib/librte_vhost/vhost_cuse/virtio-net-cdev.c
>  create mode 100644 lib/librte_vhost/vhost_cuse/virtio-net-cdev.h
>  create mode 100644 lib/librte_vhost/vhost_user/fd_man.c
>  create mode 100644 lib/librte_vhost/vhost_user/fd_man.h
>  create mode 100644 lib/librte_vhost/vhost_user/vhost-net-user.c
>  create mode 100644 lib/librte_vhost/vhost_user/vhost-net-user.h
>  create mode 100644 lib/librte_vhost/vhost_user/virtio-net-user.c
>  create mode 100644 lib/librte_vhost/vhost_user/virtio-net-user.h
>  create mode 100644 lib/librte_vhost/virtio-net.h
> 

-- 
Regards,
Haifeng



More information about the dev mailing list