From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPMTw-00053s-Uu for qemu-devel@nongnu.org; Tue, 20 Jan 2009 14:41:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPMTu-00052E-W2 for qemu-devel@nongnu.org; Tue, 20 Jan 2009 14:41:52 -0500 Received: from [199.232.76.173] (port=40815 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPMTu-00052B-Pn for qemu-devel@nongnu.org; Tue, 20 Jan 2009 14:41:50 -0500 Received: from smtp.eu.citrix.com ([62.200.22.115]:54232) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPMTu-0008Kv-FQ for qemu-devel@nongnu.org; Tue, 20 Jan 2009 14:41:50 -0500 Message-ID: <4976281B.2030309@eu.citrix.com> Date: Tue, 20 Jan 2009 19:38:03 +0000 From: Stefano Stabellini MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: Extremely slow graphic updates References: <20090119194221.GS29175@csclub.uwaterloo.ca> <20090120005351.GV29175@csclub.uwaterloo.ca> <200901200133.25029.paul@codesourcery.com> <4975B3F6.6050706@eu.citrix.com> <20090120144518.GW29175@csclub.uwaterloo.ca> <4975EC17.3090404@eu.citrix.com> <20090120165534.GY29175@csclub.uwaterloo.ca> <20090120170933.GF5177@const.bordeaux.inria.fr> <20090120181533.GZ29175@csclub.uwaterloo.ca> <4976151B.2000903@eu.citrix.com> <20090120182548.GA29175@csclub.uwaterloo.ca> In-Reply-To: <20090120182548.GA29175@csclub.uwaterloo.ca> Content-Type: multipart/mixed; boundary="------------070609010409030901060906" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lennart Sorensen Cc: qemu-devel@nongnu.org, Paul Brook This is a multi-part message in MIME format. --------------070609010409030901060906 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Lennart Sorensen wrote: > On Tue, Jan 20, 2009 at 06:16:59PM +0000, Stefano Stabellini wrote: >> At risk of being silly, why don't you just use vnc to connect to qemu, >> if qemu is running on a remote machine? >> Obviously sdl is optimized for the local case. > > Well at the moment, openbios doesn't display when you use vnc by itself. > Someone else said they could confirm that, and it had something to do > with a display timer not being initialized. I don't have a proper fix for that but if you apply the patch I attached it should work. If the gui_timer is not initialized qemu gets stuck in vl.c:main_loop at the following line: ret = cpu_exec(env); maybe someone that works on qemu ppc emulation could help. >> Of course if it is slow even locally, then there must be something wrong >> somewhere either in qemu or in sdl. > > Well I wasn't the one that saw it slow locally. > > Now does the change in 6336 make it faster on the local side for some > people? if so, then I guess there is some potential there. If you are using vnc and the guest uses 16 or 32 bpp it is faster; if the guest is using another resolution it is as fast as before. The sdl backend now uses sdl blitting functions to render the framebuffer: the code is much cleaner but it may suffer a performance loss if the guest does not use 16bpp or 32bpp (text mode for example). Otherwise it is as fast as before (maybe even faster with some drivers). I wasn't expecting the performance loss to be noticeable, I'll try to come up with a clean improvement to the new interface. > Is there some environment that can be set to tell SDL what driver to use > and how to behave? > SDL_VIDEODRIVER but usually it only works with x11, the default. --------------070609010409030901060906 Content-Type: text/plain; name="quick_fix" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="quick_fix" ZGlmZiAtLWdpdCBhL3ZsLmMgYi92bC5jCmluZGV4IDYzZDk1NGIuLjJlODRkY2UgMTAwNjQ0 Ci0tLSBhL3ZsLmMKKysrIGIvdmwuYwpAQCAtNTU1MywxNCArNTU1Myw4IEBAIGludCBtYWlu KGludCBhcmdjLCBjaGFyICoqYXJndiwgY2hhciAqKmVudnApCiAgICAgfQogICAgIGRweV9y ZXNpemUoZHMpOwogCi0gICAgZGNsID0gZHMtPmxpc3RlbmVyczsKLSAgICB3aGlsZSAoZGNs ICE9IE5VTEwpIHsKLSAgICAgICAgaWYgKGRjbC0+ZHB5X3JlZnJlc2ggIT0gTlVMTCkgewot ICAgICAgICAgICAgZHMtPmd1aV90aW1lciA9IHFlbXVfbmV3X3RpbWVyKHJ0X2Nsb2NrLCBn dWlfdXBkYXRlLCBkcyk7Ci0gICAgICAgICAgICBxZW11X21vZF90aW1lcihkcy0+Z3VpX3Rp bWVyLCBxZW11X2dldF9jbG9jayhydF9jbG9jaykpOwotICAgICAgICB9Ci0gICAgICAgIGRj bCA9IGRjbC0+bmV4dDsKLSAgICB9CisgICAgZHMtPmd1aV90aW1lciA9IHFlbXVfbmV3X3Rp bWVyKHJ0X2Nsb2NrLCBndWlfdXBkYXRlLCBkcyk7CisgICAgcWVtdV9tb2RfdGltZXIoZHMt Pmd1aV90aW1lciwgcWVtdV9nZXRfY2xvY2socnRfY2xvY2spKTsKIAogICAgIHRleHRfY29u c29sZXNfc2V0X2Rpc3BsYXkoZGlzcGxheV9zdGF0ZSk7CiAK --------------070609010409030901060906--