qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for 6.1 0/1] Fix chardev frontend bug in HMP
@ 2021-08-07 19:27 Volker Rümelin
  2021-08-07 19:29 ` [PATCH] monitor/hmp: schedule qemu_chr_fe_accept_input() after read Volker Rümelin
  0 siblings, 1 reply; 4+ messages in thread
From: Volker Rümelin @ 2021-08-07 19:27 UTC (permalink / raw)
  To: Dr. David Alan Gilbert, Markus Armbruster; +Cc: Gerd Hoffmann, qemu-devel

Since commit 584af1f1d9 (ui/gtk: add a keyboard fifo to the VTE
consoles) a GTK VTE console chardev backend relies on the
connected chardev frontend to call qemu_chr_fe_accept_input()
whenever it can receive new characters. The HMP monitor doesn't
do this. It only schedules a call to qemu_chr_fe_accept_input()
after it handled a HMP command in monitor_command_cb().

To see the problem copy and paste the word help into the GTK VTE
monitor console. You will only see the letter h. Now press the
enter key several times. Each key press will add another letter
to the word help.

I think I need help with this patch. This is the first time I
had a closer look at the monitor code so it's quite possible my
patch is completely wrong.

Volker Rümelin (1):
   monitor/hmp: schedule qemu_chr_fe_accept_input() after read

  monitor/hmp.c              |  1 +
  monitor/monitor-internal.h |  1 +
  monitor/monitor.c          | 19 +++++++++++++++++--
  3 files changed, 19 insertions(+), 2 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-10  5:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-07 19:27 [PATCH for 6.1 0/1] Fix chardev frontend bug in HMP Volker Rümelin
2021-08-07 19:29 ` [PATCH] monitor/hmp: schedule qemu_chr_fe_accept_input() after read Volker Rümelin
2021-08-09  9:57   ` Marc-André Lureau
2021-08-10  5:18     ` Volker Rümelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).