summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-11-28 10:08:22 -0500
committerMichael Roth <mdroth@linux.vnet.ibm.com>2012-12-03 15:02:28 -0600
commit8c9283c82a8428018b2e43c5f5381a99d1648d4b (patch)
tree9df033ddb050692b27433fe0e13ef5b92a25e786
parentbf47da47dbcbf2c90119ba0bd45560d5b2f1dd13 (diff)
downloadqemu-8c9283c82a8428018b2e43c5f5381a99d1648d4b.tar.gz
qxl: reload memslots after migration, when qxl is in UNDEFINED mode
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>
-rw-r--r--hw/qxl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index 89e9ad91d5..e7e9dd903f 100644
--- 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);