qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Winkelbauer <andreas.winkelbauer@gmx.at>
To: aliguori@us.ibm.com
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] add support for higher screen resolutions
Date: Wed, 17 Sep 2008 18:50:24 +0200	[thread overview]
Message-ID: <48D13550.8000707@gmx.at> (raw)

[-- Attachment #1: Type: text/plain, Size: 692 bytes --]

This patch introduces changes which are necessary for using qemu with
higher screen resolutions than 1600x1200 (with -std-vga).

In addition to this patch, the vgabios needs to be regenerated to
support higher resolutions too. A corresponding patch for the vgabios
has been submitted to Volker Ruppert.

kvm carries this patch since kvm-62 (commit
aaf6c43f811309b3f0546dd74b2543af2fad7f02).

Signed-off-by: Andreas Winkelbauer <andreas.winkelbauer@gmx.at>
---

Since I do not know how you usually generate the vgabios I will send the
 patch for it also to the qemu list. I hope Volker Ruppert will pick up
the patch, so that one could use the upstream version of vgabios directly.

bye,
Andi

[-- Attachment #2: qemu-widescreen.patch --]
[-- Type: text/x-patch, Size: 1011 bytes --]

diff -uNrp trunk.orig/hw/pc.h trunk/hw/pc.h
--- trunk.orig/hw/pc.h	2008-09-17 02:11:50.000000000 +0200
+++ trunk/hw/pc.h	2008-09-17 02:22:03.000000000 +0200
@@ -110,9 +110,9 @@ int piix4_init(PCIBus *bus, int devfn);
 /* vga.c */
 
 #ifndef TARGET_SPARC
-#define VGA_RAM_SIZE (8192 * 1024)
+#define VGA_RAM_SIZE (16 * 1024 * 1024)
 #else
-#define VGA_RAM_SIZE (9 * 1024 * 1024)
+#define VGA_RAM_SIZE (17 * 1024 * 1024)
 #endif
 
 int isa_vga_init(DisplayState *ds, uint8_t *vga_ram_base,
diff -uNrp trunk.orig/hw/vga_int.h trunk/hw/vga_int.h
--- trunk.orig/hw/vga_int.h	2008-09-17 02:11:49.000000000 +0200
+++ trunk/hw/vga_int.h	2008-09-17 02:21:43.000000000 +0200
@@ -30,8 +30,8 @@
 /* bochs VBE support */
 #define CONFIG_BOCHS_VBE
 
-#define VBE_DISPI_MAX_XRES              1600
-#define VBE_DISPI_MAX_YRES              1200
+#define VBE_DISPI_MAX_XRES              2560
+#define VBE_DISPI_MAX_YRES              1600
 #define VBE_DISPI_MAX_BPP               32
 
 #define VBE_DISPI_INDEX_ID              0x0

             reply	other threads:[~2008-09-17 16:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-17 16:50 Andreas Winkelbauer [this message]
2008-09-17 16:55 ` [Qemu-devel] [PATCH] add support for higher screen resolutions Jamie Lokier
2008-09-17 20:04 ` Samuel Thibault
2008-09-18  1:17   ` [Qemu-devel] " Andreas Winkelbauer
2008-09-18  5:55     ` Samuel Thibault
2008-09-22 14:38       ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48D13550.8000707@gmx.at \
    --to=andreas.winkelbauer@gmx.at \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).