qtest: use synchronous I/O for char device
commit0fbf01fe911e84c588be41636570f46f597113d6
authorAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Mar 2013 15:04:43 +0000 (26 10:04 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Mar 2013 15:08:12 +0000 (26 10:08 -0500)
tree2a62ae0222bc875596a9fcee39bfa39e368e2b65
parentcd18720a294bd7244ffda719677dd9c737317b67
qtest: use synchronous I/O for char device

Peter reported that rtc-test would periodically hang.  It turns out
this was due to an EAGAIN occurring on qemu_chr_fe_write.

Instead of heavily refactoring qtest, just use a synchronous version
of the write operation for qemu_chr_fe_write to address this problem.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qtest.c