From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm2pC-0004HI-HW for qemu-devel@nongnu.org; Wed, 05 Nov 2014 10:48:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm2p2-0001hg-GO for qemu-devel@nongnu.org; Wed, 05 Nov 2014 10:48:46 -0500 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:32773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm2p2-0001hH-7P for qemu-devel@nongnu.org; Wed, 05 Nov 2014 10:48:36 -0500 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 5 Nov 2014 15:48:35 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id E68911B08067 for ; Wed, 5 Nov 2014 15:48:37 +0000 (GMT) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sA5FmVUk63439042 for ; Wed, 5 Nov 2014 15:48:31 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sA5FmTIH014917 for ; Wed, 5 Nov 2014 08:48:30 -0700 From: Cornelia Huck Date: Wed, 5 Nov 2014 16:48:15 +0100 Message-Id: <1415202496-27190-5-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1415202496-27190-1-git-send-email-cornelia.huck@de.ibm.com> References: <1415202496-27190-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PULL 4/5] s390x/sclpconsole-lm: Fix hanging SCLP line mode console List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: Heinz Graalfs , qemu-devel@nongnu.org, agraf@suse.de, borntraeger@de.ibm.com, jfrei@linux.vnet.ibm.com, Cornelia Huck From: Heinz Graalfs 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 605dd50..a9f5e62 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; } -- 1.7.9.5