On Tue, 18 Dec 2018 at 20:24, Marc-André Lureau <marcandre.lur...@redhat.com> wrote: > > Hi > > On Tue, Dec 18, 2018 at 2:01 PM <elohi...@gmail.com> wrote: > > > > From: Xie Yongji <xieyon...@baidu.com> > > > > New option "disconnected" is added to init the chardev socket > > in disconnected state. 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. > > What difference does that make if you wait for connection in > qemu_chr_fe_wait_connected(), or during chardev setup? >
Wait for connection in qemu_chr_fe_wait_connected() could make it possible to start qemu before backend. Maybe we need to support this case? Thanks, Yongji