]> git.proxmox.com Git - qemu.git/commitdiff
qxl: Fix QXLRam initialisation.
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 17 Jun 2013 16:38:26 +0000 (17:38 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 12 Aug 2013 19:58:42 +0000 (14:58 -0500)
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>
(cherry picked from commit 329f97fc4ff4b533fcd2d8f4eab6c9c2568aed27)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/display/qxl.c

index c475cb10dc29af6aaf645ac94348bb2493adad7f..937a402b2ef3350f20d63219fae03dff248c91f6 100644 (file)
@@ -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);