Skip to content

Commit

Permalink
qxl: reload memslots after migration, when qxl is in UNDEFINED mode
Browse files Browse the repository at this point in the history
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 fa98efe)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
  • Loading branch information
Yonit Halperin authored and mdroth committed Dec 3, 2012
1 parent bf47da4 commit 8c9283c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/qxl.c
Expand Up @@ -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);
Expand Down

0 comments on commit 8c9283c

Please sign in to comment.