From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id BC1B65681 for ; Fri, 30 Mar 2018 04:08:18 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2018 19:08:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,378,1517904000"; d="scan'208";a="32659035" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 29 Mar 2018 19:08:17 -0700 Received: from BGSMSX108.gar.corp.intel.com (10.223.4.192) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 29 Mar 2018 19:08:16 -0700 Received: from bgsmsx101.gar.corp.intel.com ([169.254.1.233]) by BGSMSX108.gar.corp.intel.com ([169.254.8.223]) with mapi id 14.03.0319.002; Fri, 30 Mar 2018 07:38:14 +0530 From: "Yang, Zhiyong" To: "Tan, Jianfeng" , "dev@dpdk.org" CC: "Wang, Zhihong" , "maxime.coquelin@redhat.com" , "thomas@monjalon.net" , "Wang, Dong1" , "Bie, Tiwei" Thread-Topic: [PATCH v3 3/4] net/virtio-user: add support for server mode Thread-Index: AQHTwMFDkOxU7lS6tUKm+EPY8R3lrqPlcUKAgAKkT7A= Date: Fri, 30 Mar 2018 02:08:13 +0000 Message-ID: References: <20180214145330.4679-1-zhiyong.yang@intel.com> <20180321030343.64399-1-zhiyong.yang@intel.com> <20180321030343.64399-4-zhiyong.yang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.223.10.10] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 3/4] net/virtio-user: add support for server mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Mar 2018 02:08:19 -0000 Hi Jianfeng, > -----Original Message----- > From: Tan, Jianfeng > Sent: Wednesday, March 28, 2018 11:15 PM > To: Yang, Zhiyong ; dev@dpdk.org > Cc: Wang, Zhihong ; > maxime.coquelin@redhat.com; thomas@monjalon.net; Wang, Dong1 > ; Bie, Tiwei > Subject: Re: [PATCH v3 3/4] net/virtio-user: add support for server mode >=20 > Hi Zhiyong, >=20 > Triggered by the community discussion of thread creation in a library > (http://dpdk.org/dev/patchwork/patch/36579/), we can think about if > possible to avoid the pthread creation here. >=20 > Just a quick think, it could be feasible. The key idea is to properly set= up the > LSC interrupt for a server mode virtio-user. > - If the virtio-user device is just probed, we can setup LSC interrupt by > registering the listen fd to interrupt thread. Whenever a vhost-user > connection is coming, we will get a chance to read status, at that time, = we > could accept the connection, and report the status is up. > - And after the connection is setup, we setup LSC interrupt by registerin= g the > connection fd to interrupt thread; if the connection is broken, we also g= et a > change to read status, in which we can switch to the above setting. >=20 > How do you think? >=20 Very nice idea, which looks reasonable. Let me try it.=20 Thanks Zhiyong > Thanks, > Jianfeng >=20