Re: [Qemu-devel] [PATCH] char: translate from QIOChannel error to errno

2016-03-19 Thread Daniel P. Berrange
On Fri, Mar 18, 2016 at 12:55:34PM +0100, Paolo Bonzini wrote: > > > On 11/03/2016 18:55, marcandre.lur...@redhat.com wrote: > > From: Marc-André Lureau > > > > Caller of CharDriverState.chr* callback assume errno error conventions. > > Translate QIOChannel error to errno (this fixes potential

Re: [Qemu-devel] [PATCH] char: translate from QIOChannel error to errno

2016-03-19 Thread Paolo Bonzini
On 11/03/2016 18:55, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Caller of CharDriverState.chr* callback assume errno error conventions. > Translate QIOChannel error to errno (this fixes potential EAGAIN > regression, for ex if a vhost-user backend block, qemu_chr_fe_read_a

Re: [Qemu-devel] [PATCH] char: translate from QIOChannel error to errno

2016-03-11 Thread Daniel P. Berrange
On Fri, Mar 11, 2016 at 06:55:24PM +0100, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Caller of CharDriverState.chr* callback assume errno error conventions. > Translate QIOChannel error to errno (this fixes potential EAGAIN > regression, for ex if a vhost-user backend block,

[Qemu-devel] [PATCH] char: translate from QIOChannel error to errno

2016-03-11 Thread marcandre . lureau
From: Marc-André Lureau Caller of CharDriverState.chr* callback assume errno error conventions. Translate QIOChannel error to errno (this fixes potential EAGAIN regression, for ex if a vhost-user backend block, qemu_chr_fe_read_all() could get error -2 and not wait) Signed-off-by: Marc-André Lur