[dpdk-dev] [PATCH v3 3/4] net/virtio-user: add support for server mode
Yang, Zhiyong
zhiyong.yang at intel.com
Fri Mar 30 04:08:13 CEST 2018
Hi Jianfeng,
> -----Original Message-----
> From: Tan, Jianfeng
> Sent: Wednesday, March 28, 2018 11:15 PM
> To: Yang, Zhiyong <zhiyong.yang at intel.com>; dev at dpdk.org
> Cc: Wang, Zhihong <zhihong.wang at intel.com>;
> maxime.coquelin at redhat.com; thomas at monjalon.net; Wang, Dong1
> <dong1.wang at intel.com>; Bie, Tiwei <tiwei.bie at intel.com>
> Subject: Re: [PATCH v3 3/4] net/virtio-user: add support for server mode
>
> Hi Zhiyong,
>
> 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.
>
> 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 registering the
> connection fd to interrupt thread; if the connection is broken, we also get a
> change to read status, in which we can switch to the above setting.
>
> How do you think?
>
Very nice idea, which looks reasonable. Let me try it.
Thanks
Zhiyong
> Thanks,
> Jianfeng
>
More information about the dev
mailing list