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)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 29 Nov 2012 06:58:45 +0000 (07:58 +0100)
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>
hw/qxl.c

index 1bc2d32aa8e6caec916540694de65edb8b2118bb..96887c4aadf2ebf11f36cf6f9eb9781c0ee7df51 100644 (file)
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -2146,6 +2146,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);