diff options
-rw-r--r-- | hw/qxl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |