]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
qxl: reload memslots after migration, when qxl is in UNDEFINED mode
authorYonit Halperin <yhalperi@redhat.com>
Wed, 28 Nov 2012 15:08:22 +0000 (10:08 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 3 Dec 2012 21:02:28 +0000 (15:02 -0600)
The devram memslot stays active when qxl enters UNDEFINED mode (i.e, no
primary surface). If migration has occurred while the device is in
UNDEFINED stae, the memslots have to be reloaded at the destination.

Fixes rhbz#874574

Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit fa98efe932d93a15ffa867f3b05149c8d1fc7c28)

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

index 89e9ad91d55dcfed1bbcfbf99b3624488b4907a5..e7e9dd903fc24fb277c1de0af74e815d5387f27e 100644 (file)
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -2042,6 +2042,7 @@ static int qxl_post_load(void *opaque, int version)
 
     switch (newmode) {
     case QXL_MODE_UNDEFINED:
+        qxl_create_memslots(d);
         break;
     case QXL_MODE_VGA:
         qxl_create_memslots(d);