qemu/include/ui
Volker Rümelin 584af1f1d9 ui/gtk: add a keyboard fifo to the VTE consoles
Since commit 8eb13bbbac ("ui/gtk: vte: fix sending multiple
characeters") it's very easy to lock up QEMU with the GTK ui.
If you configure a guest with a serial device and the guest
doesn't listen on this device, QEMU will lock up after
entering two characters in the serial console. That's because
current code uses a busy loop for the chardev write retries
and the busy loop doesn't terminate in this case.

To fix this problem add a fifo to the VTE consoles and use the
chr_accept_input() callback function to write the remaining
characters in the queue to the chardev.

The fifo has a size of 4096 bytes, so one can copy and paste
a fairly large URL or file path.

Fixes: 8eb13bbbac ("ui/gtk: vte: fix sending multiple characeters")
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-Id: <20210725165039.5242-1-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2021-07-26 10:24:49 +02:00
..
clipboard.h ui/cocoa: Add clipboard support 2021-06-23 14:26:04 +02:00
console.h ui: Get the fd associated with udmabuf driver 2021-05-27 12:06:01 +02:00
egl-context.h ui: remove gl_ctx_get_current 2021-02-04 15:58:54 +01:00
egl-helpers.h configure: Improve OpenGL dependency detections 2021-03-04 09:35:30 +01:00
gtk.h ui/gtk: add a keyboard fifo to the VTE consoles 2021-07-26 10:24:49 +02:00
input.h include: Make headers more self-contained 2019-08-16 13:31:51 +02:00
kbd-state.h Normalize header guard symbol definition. 2019-05-13 08:58:55 +02:00
pixel_ops.h ui: move files to ui/ and include/ui/ 2012-12-19 08:31:30 +01:00
qemu-pixman.h ui/pixman: Add qemu_pixman_to_drm_format() 2021-05-27 12:07:37 +02:00
qemu-spice-module.h spice: wire up monitor in QemuSpiceOps. 2020-10-21 15:46:14 +02:00
qemu-spice.h spice: delay starting until display are initialized 2021-02-04 14:32:40 +01:00
sdl2.h ui: remove gl_ctx_get_current 2021-02-04 15:58:54 +01:00
shader.h opengl: add flipping vertex shader 2017-10-17 10:25:42 +02:00
spice-display.h configure: Improve OpenGL dependency detections 2021-03-04 09:35:30 +01:00
win32-kbd-hook.h ui/win32-kbd-hook: handle AltGr in a hook procedure 2020-05-19 09:06:44 +02:00