qemu/hw/char
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
..
Makefile.objs bcm2835_aux: add emulation of BCM2835 AUX (aka UART1) block 2016-03-16 17:42:18 +00:00
bcm2835_aux.c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
cadence_uart.c * serial port fixes (Paolo) 2016-06-29 19:14:48 +01:00
debugcon.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
digic-uart.c hw/char: QOM'ify digic-uart model 2016-06-06 16:59:31 +01:00
escc.c hw/char: QOM'ify escc.c (fix) 2016-06-06 18:57:06 +02:00
etraxfs_ser.c hw/char: QOM'ify etraxfs_ser.c 2016-05-29 09:11:10 +02:00
exynos4210_uart.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
grlib_apbuart.c sparc: Clean up includes 2016-01-29 15:07:22 +00:00
imx_serial.c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
ipoctal232.c ipack: Update e-mail address 2016-05-18 15:04:27 +03:00
lm32_juart.c hw/char: QOM'ify lm32_juart.c 2016-05-29 09:11:10 +02:00
lm32_uart.c hw/char: QOM'ify lm32_uart.c 2016-05-29 09:11:10 +02:00
mcf_uart.c hw: Clean up includes 2016-01-29 15:07:25 +00:00
milkymist-uart.c milkymist: update specification URLs 2016-06-20 18:12:04 +02:00
omap_uart.c arm devices: Clean up includes 2016-01-29 15:07:25 +00:00
parallel.c portio: keep references on portio 2016-09-08 18:05:21 +04:00
pl011.c hw/char: QOM'ify pl011 model 2016-06-06 16:59:31 +01:00
sclpconsole-lm.c sclpconsolelm: remove bogus check for -EAGAIN 2016-09-13 19:09:42 +02:00
sclpconsole.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
serial-isa.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
serial-pci.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
serial.c serial: reinstate watch after migration 2016-06-29 14:03:47 +02:00
sh_serial.c hw: Clean up includes 2016-01-29 15:07:25 +00:00
spapr_vty.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
stm32f2xx_usart.c hw/char: QOM'ify stm32f2xx_usart model 2016-06-06 16:59:32 +01:00
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
virtio-console.c virtio-console: set frontend open permanently for console devs 2016-08-11 16:38:58 +05:30
virtio-serial-bus.c virtio-serial: Wrap in vmstate 2016-07-21 20:44:20 +03:00
xen_console.c os-posix: include sys/mman.h 2016-06-16 18:39:03 +02:00
xilinx_uartlite.c hw/char: QOM'ify xilinx_uartlite model 2016-06-06 16:59:32 +01:00