Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-15 Thread Yongji Xie
On Tue, 15 Jan 2019 at 23:39, Daniel P. Berrangé wrote: > > On Fri, Jan 11, 2019 at 04:36:11PM +0800, Yongji Xie wrote: > > On Fri, 11 Jan 2019 at 16:32, Daniel P. Berrangé > > wrote: > > > > > > On Fri, Jan 11, 2019 at 03:50:40PM +0800, Yongji Xie wrote: > > > > On Fri, 11 Jan 2019 at 00:41, Da

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-15 Thread Daniel P . Berrangé
On Tue, Jan 15, 2019 at 07:53:51PM +0300, Yury Kotov wrote: > 15.01.2019, 18:39, "Daniel P. Berrangé" : > > On Fri, Jan 11, 2019 at 04:36:11PM +0800, Yongji Xie wrote: > >>  On Fri, 11 Jan 2019 at 16:32, Daniel P. Berrangé > >> wrote: > >>  > > >>  > On Fri, Jan 11, 2019 at 03:50:40PM +0800, Yong

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-15 Thread Yury Kotov
15.01.2019, 18:39, "Daniel P. Berrangé" : > On Fri, Jan 11, 2019 at 04:36:11PM +0800, Yongji Xie wrote: >>  On Fri, 11 Jan 2019 at 16:32, Daniel P. Berrangé >> wrote: >>  > >>  > On Fri, Jan 11, 2019 at 03:50:40PM +0800, Yongji Xie wrote: >>  > > On Fri, 11 Jan 2019 at 00:41, Daniel P. Berrangé

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-15 Thread Daniel P . Berrangé
On Fri, Jan 11, 2019 at 04:36:11PM +0800, Yongji Xie wrote: > On Fri, 11 Jan 2019 at 16:32, Daniel P. Berrangé wrote: > > > > On Fri, Jan 11, 2019 at 03:50:40PM +0800, Yongji Xie wrote: > > > On Fri, 11 Jan 2019 at 00:41, Daniel P. Berrangé > > > wrote: > > > > > > > > We need to fix qemu_chr_fe

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-11 Thread Yongji Xie
On Fri, 11 Jan 2019 at 16:32, Daniel P. Berrangé wrote: > > On Fri, Jan 11, 2019 at 03:50:40PM +0800, Yongji Xie wrote: > > On Fri, 11 Jan 2019 at 00:41, Daniel P. Berrangé > > wrote: > > > > > > On Thu, Jan 10, 2019 at 10:29:20PM +0800, Yongji Xie wrote: > > > > On Thu, 10 Jan 2019 at 22:11, Da

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-11 Thread Daniel P . Berrangé
On Fri, Jan 11, 2019 at 03:50:40PM +0800, Yongji Xie wrote: > On Fri, 11 Jan 2019 at 00:41, Daniel P. Berrangé wrote: > > > > On Thu, Jan 10, 2019 at 10:29:20PM +0800, Yongji Xie wrote: > > > On Thu, 10 Jan 2019 at 22:11, Daniel P. Berrangé > > > wrote: > > > > > > > > On Thu, Jan 10, 2019 at 10

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-10 Thread Yongji Xie
On Fri, 11 Jan 2019 at 00:41, Daniel P. Berrangé wrote: > > On Thu, Jan 10, 2019 at 10:29:20PM +0800, Yongji Xie wrote: > > On Thu, 10 Jan 2019 at 22:11, Daniel P. Berrangé > > wrote: > > > > > > On Thu, Jan 10, 2019 at 10:08:54PM +0800, Yongji Xie wrote: > > > > On Thu, 10 Jan 2019 at 21:24, Da

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-10 Thread Daniel P . Berrangé
On Thu, Jan 10, 2019 at 10:29:20PM +0800, Yongji Xie wrote: > On Thu, 10 Jan 2019 at 22:11, Daniel P. Berrangé wrote: > > > > On Thu, Jan 10, 2019 at 10:08:54PM +0800, Yongji Xie wrote: > > > On Thu, 10 Jan 2019 at 21:24, Daniel P. Berrangé > > > wrote: > > > > > > > > On Thu, Jan 10, 2019 at 09

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-10 Thread Yongji Xie
On Thu, 10 Jan 2019 at 22:11, Daniel P. Berrangé wrote: > > On Thu, Jan 10, 2019 at 10:08:54PM +0800, Yongji Xie wrote: > > On Thu, 10 Jan 2019 at 21:24, Daniel P. Berrangé > > wrote: > > > > > > On Thu, Jan 10, 2019 at 09:19:41PM +0800, Yongji Xie wrote: > > > > On Thu, 10 Jan 2019 at 20:50, Da

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-10 Thread Yongji Xie
On Thu, 10 Jan 2019 at 21:24, Daniel P. Berrangé wrote: > > On Thu, Jan 10, 2019 at 09:19:41PM +0800, Yongji Xie wrote: > > On Thu, 10 Jan 2019 at 20:50, Daniel P. Berrangé > > wrote: > > > > > > On Wed, Jan 09, 2019 at 07:27:22PM +0800, elohi...@gmail.com wrote: > > > > From: Xie Yongji > > >

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-10 Thread Daniel P . Berrangé
On Thu, Jan 10, 2019 at 10:08:54PM +0800, Yongji Xie wrote: > On Thu, 10 Jan 2019 at 21:24, Daniel P. Berrangé wrote: > > > > On Thu, Jan 10, 2019 at 09:19:41PM +0800, Yongji Xie wrote: > > > On Thu, 10 Jan 2019 at 20:50, Daniel P. Berrangé > > > wrote: > > > > > > > > On Wed, Jan 09, 2019 at 07

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-10 Thread Daniel P . Berrangé
On Thu, Jan 10, 2019 at 09:19:41PM +0800, Yongji Xie wrote: > On Thu, 10 Jan 2019 at 20:50, Daniel P. Berrangé wrote: > > > > On Wed, Jan 09, 2019 at 07:27:22PM +0800, elohi...@gmail.com wrote: > > > From: Xie Yongji > > > > > > Enable "nowait" option to make QEMU not do a connect > > > on client

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-10 Thread Yongji Xie
On Thu, 10 Jan 2019 at 20:50, Daniel P. Berrangé wrote: > > On Wed, Jan 09, 2019 at 07:27:22PM +0800, elohi...@gmail.com wrote: > > From: Xie Yongji > > > > Enable "nowait" option to make QEMU not do a connect > > on client sockets during initialization of the chardev. > > Then we can use qemu_ch

Re: [Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-10 Thread Daniel P . Berrangé
On Wed, Jan 09, 2019 at 07:27:22PM +0800, elohi...@gmail.com wrote: > From: Xie Yongji > > Enable "nowait" option to make QEMU not do a connect > on client sockets during initialization of the chardev. > Then we can use qemu_chr_fe_wait_connected() to connect > when necessary. Now it would be use

[Qemu-devel] [PATCH v4 for-4.0 1/7] char-socket: Enable "nowait" option on client sockets

2019-01-09 Thread elohimes
From: Xie Yongji Enable "nowait" option to make QEMU not do a connect on client sockets during initialization of the chardev. Then we can use qemu_chr_fe_wait_connected() to connect when necessary. Now it would be used for unix domain socket of vhost-user-blk device to support reconnect. Signed-