Daniel P. Berrange 7983e82933 sclpconsolelm: remove bogus check for -EAGAIN
The write_console_data() method in sclpconsole-lm.c checks
whether the return value of qemu_chr_fe_write() has the
value of -EAGAIN and if so then increments the buffer offset
by the value of EAGAIN. Fortunately qemu_chr_fe_write() will
never return EAGAIN directly, rather it returns -1 with
errno set to EAGAIN, so this broken code path was not
reachable. The behaviour on EAGAIN was stil bad though,
causing the write_console_data() to busy_wait repeatedly
calling qemu_chr_fe_write() with no sleep between iters.

Just remove all this loop logic and replace with a call
to qemu_chr_fe_write_all().

Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1473170165-540-3-git-send-email-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-09-13 19:09:42 +02:00
..
2016-06-29 19:14:48 +01:00
2016-06-06 16:59:31 +01:00
2016-06-06 18:57:06 +02:00
2016-05-29 09:11:10 +02:00
2016-01-29 15:07:23 +00:00
2016-01-29 15:07:22 +00:00
2016-05-19 16:42:29 +02:00
2016-05-18 15:04:27 +03:00
2016-05-29 09:11:10 +02:00
2016-05-29 09:11:10 +02:00
2016-01-29 15:07:25 +00:00
2016-01-29 15:07:25 +00:00
2016-09-08 18:05:21 +04:00
2016-06-06 16:59:31 +01:00
2016-01-29 15:07:25 +00:00
2016-06-16 18:39:03 +02:00