From: Yonit Halperin Date: Wed, 28 Nov 2012 15:08:22 +0000 (-0500) Subject: qxl: reload memslots after migration, when qxl is in UNDEFINED mode X-Git-Tag: qemu-xen-4.3.0-rc1~17^2~5^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fa98efe932d93a15ffa867f3b05149c8d1fc7c28;p=qemu-upstream-4.3-testing.git 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 Signed-off-by: Gerd Hoffmann --- diff --git a/hw/qxl.c b/hw/qxl.c index 1bc2d32aa..96887c4aa 100644 --- 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);