summaryrefslogtreecommitdiff
path: root/hw/display/qxl.c
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2013-06-17 17:38:26 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2013-06-21 22:52:50 +0400
commit329f97fc4ff4b533fcd2d8f4eab6c9c2568aed27 (patch)
treeb69452f61b7f12000b6d83a273ca2e8e82c5c043 /hw/display/qxl.c
parent4999f3a8a6009de05ba82e58e723277917f16254 (diff)
downloadqemu-329f97fc4ff4b533fcd2d8f4eab6c9c2568aed27.tar.gz
qxl: Fix QXLRam initialisation.
The qxl driver expect NULL for QXLRam.memory_configs, but this is never initialized. If memory is set to 0xc2c2.., it leads to a spice-critical error when trying to start qxl. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/display/qxl.c')
-rw-r--r--hw/display/qxl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/display/qxl.c b/hw/display/qxl.c
index c475cb10dc..937a402b2e 100644
--- a/hw/display/qxl.c
+++ b/hw/display/qxl.c
@@ -387,6 +387,7 @@ static void init_qxl_ram(PCIQXLDevice *d)
d->ram->int_pending = cpu_to_le32(0);
d->ram->int_mask = cpu_to_le32(0);
d->ram->update_surface = 0;
+ d->ram->monitors_config = 0;
SPICE_RING_INIT(&d->ram->cmd_ring);
SPICE_RING_INIT(&d->ram->cursor_ring);
SPICE_RING_INIT(&d->ram->release_ring);