Re: [Qemu-devel] [PATCH 27/38] ivshmem: Simplify how we cope with short reads from server

2016-03-02 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Mon, Feb 29, 2016 at 7:40 PM, Markus Armbruster wrote: >> Short reads from a UNIX domain sockets are exceedingly unlikely when >> the other side always sends eight bytes and we always read eight >> bytes. We cope with them anyway. However, the code doing t

Re: [Qemu-devel] [PATCH 27/38] ivshmem: Simplify how we cope with short reads from server

2016-03-02 Thread Marc-André Lureau
Hi On Mon, Feb 29, 2016 at 7:40 PM, Markus Armbruster wrote: > Short reads from a UNIX domain sockets are exceedingly unlikely when > the other side always sends eight bytes and we always read eight > bytes. We cope with them anyway. However, the code doing that is > rather convoluted. Dumb it

[Qemu-devel] [PATCH 27/38] ivshmem: Simplify how we cope with short reads from server

2016-02-29 Thread Markus Armbruster
Short reads from a UNIX domain sockets are exceedingly unlikely when the other side always sends eight bytes and we always read eight bytes. We cope with them anyway. However, the code doing that is rather convoluted. Dumb it down radically. Replace the convoluted code Signed-off-by: Markus Ar