Blame 0409-qxl-drop-vram-bar-minimum-size.patch
|
Hans de Goede |
56753f |
From f7656005900f3c07450303afa66151b6a1bb9599 Mon Sep 17 00:00:00 2001
|
|
Hans de Goede |
56753f |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
Hans de Goede |
56753f |
Date: Fri, 17 Feb 2012 14:40:01 +0100
|
|
Hans de Goede |
56753f |
Subject: [PATCH 409/434] qxl: drop vram bar minimum size
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
There is no reason to require a minimum size of 16 MB for the vram.
|
|
Hans de Goede |
56753f |
Lower the limit to 4096 (one page). Make it disapper completely would
|
|
Hans de Goede |
56753f |
break guests.
|
|
Hans de Goede |
56753f |
---
|
|
Hans de Goede |
56753f |
hw/qxl.c | 4 ++--
|
|
Hans de Goede |
56753f |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
diff --git a/hw/qxl.c b/hw/qxl.c
|
|
Hans de Goede |
56753f |
index b910337..d71c94d 100644
|
|
Hans de Goede |
56753f |
--- a/hw/qxl.c
|
|
Hans de Goede |
56753f |
+++ b/hw/qxl.c
|
|
Hans de Goede |
56753f |
@@ -1595,8 +1595,8 @@ static int qxl_init_common(PCIQXLDevice *qxl)
|
|
Hans de Goede |
56753f |
init_qxl_rom(qxl);
|
|
Hans de Goede |
56753f |
init_qxl_ram(qxl);
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
- if (qxl->vram_size < 16 * 1024 * 1024) {
|
|
Hans de Goede |
56753f |
- qxl->vram_size = 16 * 1024 * 1024;
|
|
Hans de Goede |
56753f |
+ if (qxl->vram_size < 4096) {
|
|
Hans de Goede |
56753f |
+ qxl->vram_size = 4096;
|
|
Hans de Goede |
56753f |
}
|
|
Hans de Goede |
56753f |
if (qxl->revision == 1) {
|
|
Hans de Goede |
56753f |
qxl->vram_size = 4096;
|
|
Hans de Goede |
56753f |
--
|
|
Hans de Goede |
56753f |
1.7.10
|
|
Hans de Goede |
56753f |
|