summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}