From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPkhT-00015U-3d for qemu-devel@nongnu.org; Wed, 21 Jan 2009 16:33:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPkhR-00013p-4b for qemu-devel@nongnu.org; Wed, 21 Jan 2009 16:33:26 -0500 Received: from [199.232.76.173] (port=43474 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPkhR-00013h-0q for qemu-devel@nongnu.org; Wed, 21 Jan 2009 16:33:25 -0500 Received: from mail-qy0-f20.google.com ([209.85.221.20]:65190) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPkhQ-0006qV-MR for qemu-devel@nongnu.org; Wed, 21 Jan 2009 16:33:24 -0500 Received: by qyk13 with SMTP id 13so5941074qyk.10 for ; Wed, 21 Jan 2009 13:33:23 -0800 (PST) Message-ID: <4977948F.1040501@codemonkey.ws> Date: Wed, 21 Jan 2009 15:33:03 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [6391] Fix nographic mode and VNC References: <20090121200345.GB5237@const.famille.thibault.fr> <20090121202904.GE5237@const.famille.thibault.fr> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Blue Swirl wrote: > On 1/21/09, Samuel Thibault wrote: > >> Blue Swirl, le Wed 21 Jan 2009 22:16:15 +0200, a écrit : >> >> >>> On 1/21/09, Samuel Thibault wrote: >>> >> > > Blue Swirl, le Wed 21 Jan 2009 19:28:14 +0000, a écrit : >> > > >> > > > +static void nographic_update(void *opaque) >> > > > +{ >> > > > + uint64_t interval = GUI_REFRESH_INTERVAL; >> > > > + >> > > > + qemu_mod_timer(nographic_timer, interval + qemu_get_clock(rt_clock)); >> > > > +} >> > > >> > > >> > > Maybe less often than 33 times per second? SDL uses 2 times per second >> > > when the window is minimized. >> > >> > I just tried: it's not enough, the serial console is unusably slow. >> >> >> Mmm, I haven't followed everything so I probably misunderstand, but I >> guess you are talking about a serial console on stdio, shouldn't we >> already be monitoring the stdin fd to break the cpu emulation loop? >> > > Some other way, like SIGIO or IO worker thread, may work too. It may > also be a big change. > The solution is an IO thread. I've been working on this on and off for KVM and now I think I see how to do it for TCG. With an IO thread, select() could run while TCG ran and when select() returned, it would signal to TCG as if a signal handler was invoked. Regards, Anthony Liguori