From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HYBCy-00076p-1e for qemu-devel@nongnu.org; Sun, 01 Apr 2007 21:19:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HYBCw-00076N-7w for qemu-devel@nongnu.org; Sun, 01 Apr 2007 21:19:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYBCw-00076G-3i for qemu-devel@nongnu.org; Sun, 01 Apr 2007 21:19:42 -0400 Received: from phoenix.bawue.net ([193.7.176.60] helo=mail.bawue.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HYB9w-00007M-Ua for qemu-devel@nongnu.org; Sun, 01 Apr 2007 21:16:37 -0400 Date: Mon, 2 Apr 2007 02:09:56 +0100 Subject: Re: [Qemu-devel] Re: [PATCH] VMware SVGA II emulation Message-ID: <20070402010956.GC29594@networkno.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: From: Thiemo Seufer Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: andrzej zaborowski Cc: qemu-devel@nongnu.org andrzej zaborowski wrote: > Hi, > I looked at how the embedding of a standard VGA in the VMware SVGA > could be done (mainly out of curiosity) and it wasn't difficult. I had > to make small changes in hw/vga.c but I think it's made more flexible > now. Attached is a second version of the VMware SVGA patch. This time > including the "Host-accelerated mouse cursor support in SDL" patch in > the same file. I added a FIFO for buffering screen update requests so > as to avoid touching the SDL buffer between scheduled updates, (which > could lead to drawing over qemu monitor or even segfaults if the > resolution was changed in meantime). I also found what was wrong with > the accelerated rectangle filling and fixed a couple of other issues. > The palette size was also wrong in the older patch - credits to > Anthony Liguori who spotted it. > > I have not tested switching between std VGA graphic modes and VMware > SVGA mode, but the switching between VGA text mode and VMware SVGA > mode worked fine (although the black console background was becoming > not exactly black). Savevm/loadvm should also work, including the VGA > part. > In this version VMware SVGA is a standalone VGA so we're using only > one qemu console, like with "-cirrusvga". I left the sdl_copy bit out because it broke scrolling of a guest Linux framebuffer in the moment it initialized its virtual consoles. Maybe that's a bug in libsdl 1.2. Thiemo