From 87f2eff01623fe3d79e6c0962a3037d48b80b548 Mon Sep 17 00:00:00 2001 From: Heinz Graalfs Date: Wed, 29 Oct 2014 12:52:02 +0000 Subject: [PATCH] s390x/sclpconsole-lm: Fix hanging SCLP line mode console Trigger recalculating sets of file descriptors for the main loop's poll() in order to make sure a possibly removed FD 0 from the poll() file descriptor array is re-added. FD 0 is removed from the decriptor array when the console's can_read() callback returns 0. Signed-off-by: Heinz Graalfs Reviewed-by: David Hildenbrand Signed-off-by: Cornelia Huck --- hw/char/sclpconsole-lm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/char/sclpconsole-lm.c b/hw/char/sclpconsole-lm.c index 605dd50fb4..a9f5e62f24 100644 --- a/hw/char/sclpconsole-lm.c +++ b/hw/char/sclpconsole-lm.c @@ -128,6 +128,7 @@ static int get_console_data(SCLPEvent *event, uint8_t *buf, size_t *size, cons->length = 0; /* data provided and no more data pending */ event->event_pending = false; + qemu_notify_event(); return 0; } -- 2.11.0