]> git.proxmox.com Git - mirror_qemu.git/commit
ivshmem: Simplify how we cope with short reads from server
authorMarkus Armbruster <armbru@redhat.com>
Tue, 15 Mar 2016 18:34:44 +0000 (19:34 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 21 Mar 2016 20:29:01 +0000 (21:29 +0100)
commitee276391a38c784fd1a3ce33eab0481348d518d1
tree23e8548a5837d6001bbcc39de825d0517278b83c
parentba5970a178ef927c34cb8a6dfff54de0a58497c6
ivshmem: Simplify how we cope with short reads from server

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.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1458066895-20632-30-git-send-email-armbru@redhat.com>
hw/misc/ivshmem.c