]> git.proxmox.com Git - mirror_qemu.git/commit - hw/vga.c
vga: make vram size configurable
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 24 May 2012 07:59:44 +0000 (09:59 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 22 Jun 2012 08:46:12 +0000 (10:46 +0200)
commit4a1e244eb65c646bdd938d9d137ace42d76c95a7
tree312ebcb456904968061be48cecbee7b5197e26f3
parente9c6149f6ae6873f14a12eea554925b6aa4c4dec
vga: make vram size configurable

Zap the global VGA_RAM_SIZE #define, make the vga ram size configurable
for standard vga and vmware vga.  cirrus and qxl are left with a fixed
size (and private VGA_RAM_SIZE #define) for now.

qxl needs some non-trivial adjustments in the mode list handling deal
with a runtime-configurable size, which calls for a separate qxl patch.

cirrus emulates cards which have 2 MB (isa) and 4 MB (pci), so I guess
it would make sense to use these sizes.  That change would break
migration though, so I left it fixed at 8 MB size.  Making it
configurabls is pretty pointless for cirrus as we have to match real
hardware.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/cirrus_vga.c
hw/qxl.c
hw/vga-isa-mm.c
hw/vga-isa.c
hw/vga-pci.c
hw/vga.c
hw/vga_int.h
hw/vmware_vga.c