summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-11-28 10:08:22 -0500
committerDoug Goldstein <cardoe@cardoe.com>2012-12-13 15:32:00 -0600
commita55d4de13a62fcbd8cbd5ccb5b8ae6d8a1de6150 (patch)
tree7037e975c8170994ad6d00e6d28f1646dc11d370
parentvirtio-scsi: Fix subtle (guest) endian bug (diff)
downloadqemu-kvm-a55d4de13a62fcbd8cbd5ccb5b8ae6d8a1de6150.tar.gz
qemu-kvm-a55d4de13a62fcbd8cbd5ccb5b8ae6d8a1de6150.tar.bz2
qemu-kvm-a55d4de13a62fcbd8cbd5ccb5b8ae6d8a1de6150.zip
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> (cherry picked from commit 8c9283c82a8428018b2e43c5f5381a99d1648d4b)
-rw-r--r--hw/qxl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index 89e9ad91d..e7e9dd903 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);