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

login
register
mail settings
Submitter Yonit Halperin
Date Nov. 28, 2012, 3:08 p.m.
Message ID <1354115302-797-1-git-send-email-yhalperi@redhat.com>
Download mbox | patch
Permalink /patch/202472/
State New
Headers show

Comments

Yonit Halperin - Nov. 28, 2012, 3:08 p.m.
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>
---
 hw/qxl.c | 1 +
 1 file changed, 1 insertion(+)
Gerd Hoffmann - Nov. 29, 2012, 6:58 a.m.
On 11/28/12 16:08, Yonit Halperin wrote:
> 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

Patch

diff --git a/hw/qxl.c b/hw/qxl.c
index 1bc2d32..96887c4 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);