summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-06-25 09:28:59 +0300
committerAlon Levy <alevy@redhat.com>2012-06-29 17:43:07 +0300
commit076d32aafe0a944240521f341429e8aa1678b3dd (patch)
tree4cc31068d6607fccd0395fa73d244c99f4998744
parent4592aed78085c9f7457e8a1b75ab14807c91a9ea (diff)
qxl: let guest use whole bar for primaryfeatures/qxl-monitors-config
Signed-off-by: Alon Levy <alevy@redhat.com>
-rw-r--r--hw/qxl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index 154c15f14..521d07981 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -1230,8 +1230,8 @@ static void qxl_create_guest_primary(PCIQXLDevice *qxl, int loadvm,
int requested_stride = le32_to_cpu(sc->stride);
size = abs(requested_stride) * requested_height;
- if (size > qxl->vgamem_size) {
- qxl_set_guest_bug(qxl, "%s: requested primary larger then framebuffer"
+ if (size > qxl->vga.vram_size) {
+ qxl_set_guest_bug(qxl, "%s: requested primary larger then bar"
" size", __func__);
return;
}