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
..
2020-09-30 19:09:19 +02:00
2021-06-23 14:26:04 +02:00
2021-07-26 10:24:49 +02:00
2019-03-11 08:39:02 +01:00
2021-02-04 15:58:54 +01:00
2021-05-21 09:42:44 +02:00
2020-10-15 16:35:06 +01:00
2019-08-16 13:31:52 +02:00
2020-12-10 12:15:18 -05:00
2021-07-09 18:20:27 +02:00
2020-08-21 06:30:21 -04:00
2021-05-21 09:42:44 +02:00
2017-07-27 14:23:09 +02:00
2021-05-21 09:42:44 +02:00
2019-02-05 16:50:18 +01:00
2021-01-23 15:55:07 -05:00
2021-05-21 09:42:44 +02:00