Re: [Qemu-devel] [PATCH] hw/char/serial: retry write if EAGAIN

2018-07-16 Thread Paolo Bonzini
On 16/07/2018 13:07, Marc-André Lureau wrote: > If the chardev returns -1 with EAGAIN errno on write(), it should try > to send it again (EINTR is handled by the chardev itself). > > This fixes commit 019288bf137183bf3407c9824655b753bfafc99f > "hw/char/serial: Only retry if qemu_chr_fe_write retur

[Qemu-devel] [PATCH] hw/char/serial: retry write if EAGAIN

2018-07-16 Thread Marc-André Lureau
If the chardev returns -1 with EAGAIN errno on write(), it should try to send it again (EINTR is handled by the chardev itself). This fixes commit 019288bf137183bf3407c9824655b753bfafc99f "hw/char/serial: Only retry if qemu_chr_fe_write returns 0" Tested-by: Igor Mammedov Signed-off-by: Marc-And