Skip to contentSkip to conversation

qxl: reload memslots after migration, when qxl is in UNDEFINED mode

PATCH In review Yonit Halperin 2 participants 2 messages Nov 28, 2012 – Nov 29, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 hw/qxl.c | 1 +
 1 file changed, 1 insertion(+)
hw/qxl.c +1 -0
index 1bc2d32..96887c4 100644
@@ -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);
Signature · 1 line
1.7.11.7
#1 lore raw
Quoted 3 lines · Yonit Halperin

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.

Patch added to spice patch queue.

thanks,
Gerd