Re: [Qemu-devel] [PATCH v3 1/1] qemu-char: socket backend: disconnect on write error

2017-02-03 Thread Paolo Bonzini
On 02/02/2017 06:26, Denis V. Lunev wrote: > From: Anton Nefedov > > Socket backend read handler should normally perform a disconnect, however > the read handler may not get a chance to run if the frontend is not ready > (qemu_chr_be_can_write() == 0). > > This means that in virtio-serial fron

[Qemu-devel] [PATCH v3 1/1] qemu-char: socket backend: disconnect on write error

2017-02-02 Thread Denis V. Lunev
From: Anton Nefedov Socket backend read handler should normally perform a disconnect, however the read handler may not get a chance to run if the frontend is not ready (qemu_chr_be_can_write() == 0). This means that in virtio-serial frontend case if - the host has disconnected (giving EPIPE on