From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id ECC987F58 for ; Tue, 10 May 2016 05:23:18 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 09 May 2016 20:23:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,603,1455004800"; d="scan'208";a="976204951" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga002.fm.intel.com with ESMTP; 09 May 2016 20:23:17 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 9 May 2016 20:23:17 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 9 May 2016 20:23:17 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.104]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0248.002; Tue, 10 May 2016 11:23:15 +0800 From: "Xu, Qian Q" To: Yuanhan Liu , "dev@dpdk.org" CC: "Xie, Huawei" Thread-Topic: [dpdk-dev] [PATCH 0/6] vhost: add vhost-user client mode and reconnect ability Thread-Index: AQHRqCrRvZVXGIub6kKnFJUDN41TrJ+xhgCQ Date: Tue, 10 May 2016 03:23:15 +0000 Message-ID: <82F45D86ADE5454A95A89742C8D1410E0327A05C@shsmsx102.ccr.corp.intel.com> References: <1462603224-29510-1-git-send-email-yuanhan.liu@linux.intel.com> In-Reply-To: <1462603224-29510-1-git-send-email-yuanhan.liu@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOThkZGZiYjQtM2NhMC00YmNiLWI4OWMtYzM4YjdjNmI0NWFjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkxNdEZ5SjhtalgzT1FtWCtPVmxxMGlTaU0xblNyY0l2MVllNm1hUTNKUWM9In0= x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 0/6] vhost: add vhost-user client mode and reconnect ability 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: Tue, 10 May 2016 03:23:19 -0000 Do we need patch qemu for the reconnect case? =20 Thanks Qian -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Yuanhan Liu Sent: Saturday, May 07, 2016 2:40 PM To: dev@dpdk.org Cc: Xie, Huawei; Yuanhan Liu Subject: [dpdk-dev] [PATCH 0/6] vhost: add vhost-user client mode and recon= nect ability Both the vhost-user backend (DPDK here) and frontend (QEMU) could be server= , as well as client. DPDK just acts as server so far. This patch set would = make it possible to act as both. A new arg (flags) is introduced for API rte_vhost_driver_register(). And th= e client mode is enabled when RTE_VHOST_USER_CLIENT is given. Note that thi= s implies an API breakage. However, since this release deals with ABI/API r= efactoring, it should not be an issue. With the DPDK as client, it's easier to implement the "reconnect" ability, = which means we could still make vhost-user work after DPDK restarts. --- Yuanhan Liu (6): vhost: rename structs for enabling client mode vhost: add vhost-user client mode vhost: add reconnect ability vhost: workaround stale vring base examples/vhost: add client and reconnect option vhost: add pmd client and reconnect option drivers/net/vhost/rte_eth_vhost.c | 54 +++- examples/vhost/main.c | 23 +- lib/librte_vhost/rte_virtio_net.h | 12 +- lib/librte_vhost/vhost_user/vhost-net-user.c | 355 ++++++++++++++++++-----= ---- lib/librte_vhost/vhost_user/vhost-net-user.h | 6 - lib/librte_vhost/virtio-net.c | 8 + 6 files changed, 313 insertions(+), 145 deletions(-) -- 1.9.0