Re: [Qemu-devel] [PATCH V2] chardev: fix parallel device can't be reconnect

2017-07-11 Thread Paolo Bonzini
On 11/07/2017 14:37, Daniel P. Berrange wrote: > On Tue, Jul 11, 2017 at 02:21:08PM +0200, Paolo Bonzini wrote: >> On 11/07/2017 11:15, Daniel P. Berrange wrote: >>> On Tue, Jul 11, 2017 at 10:30:14AM +0200, Paolo Bonzini wrote: On 11/07/2017 13:47, Peng Hao wrote: > Parallel device don't

Re: [Qemu-devel] [PATCH V2] chardev: fix parallel device can't be reconnect

2017-07-11 Thread Marc-André Lureau
Hi On Tue, Jul 11, 2017 at 2:21 PM Paolo Bonzini wrote: > On 11/07/2017 11:15, Daniel P. Berrange wrote: > > On Tue, Jul 11, 2017 at 10:30:14AM +0200, Paolo Bonzini wrote: > >> On 11/07/2017 13:47, Peng Hao wrote: > >>> Parallel device don't register be->chr_can_read function, but remote > >>> d

Re: [Qemu-devel] [PATCH V2] chardev: fix parallel device can't be reconnect

2017-07-11 Thread Daniel P. Berrange
On Tue, Jul 11, 2017 at 02:21:08PM +0200, Paolo Bonzini wrote: > On 11/07/2017 11:15, Daniel P. Berrange wrote: > > On Tue, Jul 11, 2017 at 10:30:14AM +0200, Paolo Bonzini wrote: > >> On 11/07/2017 13:47, Peng Hao wrote: > >>> Parallel device don't register be->chr_can_read function, but remote > >

Re: [Qemu-devel] [PATCH V2] chardev: fix parallel device can't be reconnect

2017-07-11 Thread Paolo Bonzini
On 11/07/2017 11:15, Daniel P. Berrange wrote: > On Tue, Jul 11, 2017 at 10:30:14AM +0200, Paolo Bonzini wrote: >> On 11/07/2017 13:47, Peng Hao wrote: >>> Parallel device don't register be->chr_can_read function, but remote >>> disconnect event is handled in chr_read.So connected parallel device >

Re: [Qemu-devel] [PATCH V2] chardev: fix parallel device can't be reconnect

2017-07-11 Thread Daniel P. Berrange
On Tue, Jul 11, 2017 at 10:30:14AM +0200, Paolo Bonzini wrote: > On 11/07/2017 13:47, Peng Hao wrote: > > Parallel device don't register be->chr_can_read function, but remote > > disconnect event is handled in chr_read.So connected parallel device > > can not detect remote disconnect event. The cha

Re: [Qemu-devel] [PATCH V2] chardev: fix parallel device can't be reconnect

2017-07-11 Thread Paolo Bonzini
On 11/07/2017 13:47, Peng Hao wrote: > Parallel device don't register be->chr_can_read function, but remote > disconnect event is handled in chr_read.So connected parallel device > can not detect remote disconnect event. The chardevs with chr_can_read=NULL > has the same problem. > > Signed-off-by

[Qemu-devel] [PATCH V2] chardev: fix parallel device can't be reconnect

2017-07-10 Thread Peng Hao
Parallel device don't register be->chr_can_read function, but remote disconnect event is handled in chr_read.So connected parallel device can not detect remote disconnect event. The chardevs with chr_can_read=NULL has the same problem. Signed-off-by: Peng Hao Reviewed-by: Wang Yechao --- charde