From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kg0Ez-0002c1-Ow for qemu-devel@nongnu.org; Wed, 17 Sep 2008 12:50:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kg0Ex-0002b1-JX for qemu-devel@nongnu.org; Wed, 17 Sep 2008 12:50:56 -0400 Received: from [199.232.76.173] (port=59707 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kg0Ex-0002ax-GG for qemu-devel@nongnu.org; Wed, 17 Sep 2008 12:50:55 -0400 Received: from mail.gmx.net ([213.165.64.20]:54205) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Kg0Ew-00089K-Hw for qemu-devel@nongnu.org; Wed, 17 Sep 2008 12:50:55 -0400 Message-ID: <48D13569.3050305@gmx.at> Date: Wed, 17 Sep 2008 18:50:49 +0200 From: Andreas Winkelbauer MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040906070306080706050005" Subject: [Qemu-devel] [PATCH] add high resolution videomodes to vgabios 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 This is a multi-part message in MIME format. --------------040906070306080706050005 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit This patch adds support for higher resolution video modes. kvm carries this patch since kvm-62 (commit 341ceafbf7d798604f544e7e6bf1e88e9cf00a4e), see: http://git.kernel.org/?p=virt/kvm/kvm-userspace.git;a=commit;h=341ceafbf7d798604f544e7e6bf1e88e9cf00a4e Also qemu needs this patch to support higher resolutions using -std-vga. bye, Andi --------------040906070306080706050005 Content-Type: text/x-patch; name="vgabios-widescreen.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vgabios-widescreen.patch" diff -uNrp vgabios.orig/vbetables-gen.c vgabios/vbetables-gen.c --- vgabios.orig/vbetables-gen.c 2006-08-15 22:42:14.000000000 +0200 +++ vgabios/vbetables-gen.c 2008-09-17 02:25:35.000000000 +0200 @@ -2,7 +2,7 @@ #include #include -#define VBE_DISPI_TOTAL_VIDEO_MEMORY_MB 8 +#define VBE_DISPI_TOTAL_VIDEO_MEMORY_MB 16 typedef struct { int width; @@ -55,6 +55,30 @@ ModeInfo modes[] = { { 1152, 864, 16 , 0x14a}, { 1152, 864, 24 , 0x14b}, { 1152, 864, 32 , 0x14c}, +{ 1280, 768, 16 , 0x175}, +{ 1280, 768, 24 , 0x176}, +{ 1280, 768, 32 , 0x177}, +{ 1280, 800, 16 , 0x178}, +{ 1280, 800, 24 , 0x179}, +{ 1280, 800, 32 , 0x17a}, +{ 1280, 960, 16 , 0x17b}, +{ 1280, 960, 24 , 0x17c}, +{ 1280, 960, 32 , 0x17d}, +{ 1440, 900, 16 , 0x17e}, +{ 1440, 900, 24 , 0x17f}, +{ 1440, 900, 32 , 0x180}, +{ 1400, 1050, 16 , 0x181}, +{ 1400, 1050, 24 , 0x182}, +{ 1400, 1050, 32 , 0x183}, +{ 1680, 1050, 16 , 0x184}, +{ 1680, 1050, 24 , 0x185}, +{ 1680, 1050, 32 , 0x186}, +{ 1920, 1200, 16 , 0x187}, +{ 1920, 1200, 24 , 0x188}, +{ 1920, 1200, 32 , 0x189}, +{ 2560, 1600, 16 , 0x18a}, +{ 2560, 1600, 24 , 0x18b}, +{ 2560, 1600, 32 , 0x18c}, { 0, }, }; --------------040906070306080706050005--