aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-03-16 13:18:00 +0100
committerJan Kiszka <jan.kiszka@siemens.com>2012-04-16 15:41:31 +0200
commit98c8ee1da81b88252263f9215ca23b2044650696 (patch)
tree0d704f0f780ad51ed7eac3c6d2536032cb84fc2a
parentef45c9147f534531ef5d8a20315089d43ea4ddef (diff)
Kick io-thread on qemu_chr_accept_input
Once a chr frontend is able to receive input again, we need to inform the io-thread about this fact. Otherwise, main_loop_wait may continue to select without the related backend file descriptor in its set. This can cause high input latencies if only low-rate events arrive otherwise. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
-rw-r--r--qemu-char.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-char.c b/qemu-char.c
index bb9e3f50a8..74c60e11a0 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -177,6 +177,7 @@ void qemu_chr_accept_input(CharDriverState *s)
{
if (s->chr_accept_input)
s->chr_accept_input(s);
+ qemu_notify_event();
}
void qemu_chr_fe_printf(CharDriverState *s, const char *fmt, ...)