aboutsummaryrefslogtreecommitdiff
path: root/hw/qxl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-02-17 14:40:01 +0100
committerGerd Hoffmann <kraxel@redhat.com>2012-02-21 10:36:05 +0100
commit80105bbfb2aa3023e959b6ea682a3fc9515080a3 (patch)
tree3eb4f41f99e837f8c4482d6891bd6c0b2f429452 /hw/qxl.c
parentfaa982232197c66e72c936baa617cd18ee02bc94 (diff)
qxl: drop vram bar minimum size
There is no reason to require a minimum size of 16 MB for the vram. Lower the limit to 4096 (one page). Make it disapper completely would break guests.
Diffstat (limited to 'hw/qxl.c')
-rw-r--r--hw/qxl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index 5c6b5565dc..4de4b8d593 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -1592,8 +1592,8 @@ static int qxl_init_common(PCIQXLDevice *qxl)
init_qxl_rom(qxl);
init_qxl_ram(qxl);
- if (qxl->vram_size < 16 * 1024 * 1024) {
- qxl->vram_size = 16 * 1024 * 1024;
+ if (qxl->vram_size < 4096) {
+ qxl->vram_size = 4096;
}
if (qxl->revision == 1) {
qxl->vram_size = 4096;