chardev: block during sync read
commitbcdeb9be566ded2eb35233aaccf38742a21e5daa
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 6 Jul 2017 17:03:53 +0000 (6 19:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jul 2017 09:04:33 +0000 (14 11:04 +0200)
tree20c0d1377d188c1f42276b09e757f49e64222b67
parent747969db2a6cd6e93561f7edc50d824a7d67346b
chardev: block during sync read

A sync read should block until all requested data is
available (instead of retrying in qemu_chr_fe_read_all). Change the
channel to blocking during sync_read.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170706170353.32601-1-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
chardev/char-socket.c