Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DL02i-00074f-QO for qemu-devel@nongnu.org; Mon, 11 Apr 2005 10:37:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DL02Z-00070H-PH for qemu-devel@nongnu.org; Mon, 11 Apr 2005 10:37:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DL02Y-0006wq-K7 for qemu-devel@nongnu.org; Mon, 11 Apr 2005 10:37:26 -0400 Received: from [66.33.198.201] (helo=jareth.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DL0RV-0002WH-0o for qemu-devel@nongnu.org; Mon, 11 Apr 2005 11:03:13 -0400 Received: from [192.168.1.20] (84-245-186-206.muc.bpool.celox.de [84.245.186.206]) by jareth.dreamhost.com (Postfix) with ESMTP id 31F336B631 for ; Mon, 11 Apr 2005 08:01:34 -0700 (PDT) Message-ID: <425A914C.9010608@mastros.biz> Date: Mon, 11 Apr 2005 17:01:32 +0200 From: James Mastros MIME-Version: 1.0 Subject: Re: [Qemu-devel] qvm86, kqemu and video speed References: <425A84B0.60200@praguespringpeople.org> In-Reply-To: <425A84B0.60200@praguespringpeople.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Struan Bartlett wrote: > Hi, > > I've run some Windows 2000 performance tests on Qemu using a program > called PassMark PerformanceTest. You can find some results here - > http://www.praguespringpeople.org/Struan/Software/QEMU/Performance/2005-03-29/ > - I'll put more there when I make them. > > The results seem to me to suggest that emulated performance is weakest > on video operations - which doesn't surprise me if it is necessary for > every pixel change to be emulated - and while this won't be an issue for > some Qemu users it will I expect be a major issue for others. One thing that could be done as a fairly quick hack would be to call SDL's bitblit function for bitblits that are simple copies. These are rather common, and SDL already knows how to optimize them well -- we're just missing a bit of glue. I got about halfway through doing this in a few hours of hacking, but realized that the video struct was completely undocumented, and I wasn't sure how to map from a pointer into the LFB back into xy coords. After that, I think the best thing to do is to move from emulating a standard video card to defining our own that maps from the operations that the OS calls its video driver on to the operations that SDL implements, leaving any that do not map simply for the OS to emulate, on the theory that it probably knows how to better then we do. However, this is a much larger undertaking, as it requires learning the driver model of the guest OSes. -=- James Mastros