qxl: drop vram bar minimum size
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 17 Feb 2012 13:40:01 +0000 (14:40 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 21 Feb 2012 09:36:05 +0000 (10:36 +0100)
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.

hw/qxl.c

index 5c6b5565dc28b3166ea9129514a0c0c486d4a209..4de4b8d5935b63708f306aaea6c6f08507e9d8e9 100644 (file)
--- 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;