Hi Jianfeng, > -----Original Message----- > From: Tan, Jianfeng > Sent: Wednesday, March 28, 2018 11:15 PM > To: Yang, Zhiyong <[email protected]>; [email protected] > Cc: Wang, Zhihong <[email protected]>; > [email protected]; [email protected]; Wang, Dong1 > <[email protected]>; Bie, Tiwei <[email protected]> > 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 >

