From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [119.145.14.65]) by dpdk.org (Postfix) with ESMTP id 223FE58F4 for ; Mon, 9 Feb 2015 08:53:31 +0100 (CET) Received: from 172.24.2.119 (EHLO szxeml433-hub.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CHB32052; Mon, 09 Feb 2015 15:53:28 +0800 (CST) Received: from [127.0.0.1] (10.177.19.115) by szxeml433-hub.china.huawei.com (10.82.67.210) with Microsoft SMTP Server id 14.3.158.1; Mon, 9 Feb 2015 15:52:08 +0800 Message-ID: <54D86726.8080604@huawei.com> Date: Mon, 9 Feb 2015 15:52:06 +0800 From: Linhaifeng User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Huawei Xie , References: <1422242440-28948-1-git-send-email-huawei.xie@intel.com> In-Reply-To: <1422242440-28948-1-git-send-email-huawei.xie@intel.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.19.115] X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [RFC PATCH v2 00/14] qemu vhost-user support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2015 07:53:33 -0000 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