From aaf6c43f811309b3f0546dd74b2543af2fad7f02 Mon Sep 17 00:00:00 2001 From: Andreas Winkelbauer Date: Sun, 24 Feb 2008 10:33:27 +0200 Subject: [PATCH] kvm: qemu: extend vram size to 16MB this is useful for high resolutions. Signed-off-by: Avi Kivity --- qemu/hw/pc.h | 4 ++-- qemu/hw/vga.c | 2 +- qemu/hw/vga_int.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qemu/hw/pc.h b/qemu/hw/pc.h index f6403953..d1095692 100644 --- a/qemu/hw/pc.h +++ b/qemu/hw/pc.h @@ -108,9 +108,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 --git a/qemu/hw/vga.c b/qemu/hw/vga.c index 6392b009..83560616 100644 --- a/qemu/hw/vga.c +++ b/qemu/hw/vga.c @@ -1438,7 +1438,7 @@ static void vga_draw_graphic(VGAState *s, int full_update) long page0, page1, page_min, page_max; vga_draw_line_func *vga_draw_line; /* HACK ALERT */ -#define VGA_BITMAP_SIZE ((8*1024*1024) / 4096 / 8 / sizeof(long)) +#define VGA_BITMAP_SIZE (VGA_RAM_SIZE / 4096 / 8 / sizeof(long)) unsigned long bitmap[VGA_BITMAP_SIZE]; #ifndef TARGET_IA64 int r; diff --git a/qemu/hw/vga_int.h b/qemu/hw/vga_int.h index 980e8a80..3c47e72f 100644 --- a/qemu/hw/vga_int.h +++ b/qemu/hw/vga_int.h @@ -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 -- 2.11.4.GIT