Skip to contentSkip to conversation

vga/migration: Update memory map in post_load

PATCH In review Dr. David Alan Gilbert (git) 2 participants 2 messages Aug 4, 2017 – Aug 8, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vga/migration: Update memory map in post_load

From: "Dr. David Alan Gilbert" <[email protected]>

After migration the chain4 alias mapping added by 80763888 (in 2011) might be missing, since there's no call to vga_update_memory_access in the post_load after the registers are updated. Add it back.

---
 hw/display/vga.c | 1 +
 1 file changed, 1 insertion(+)
hw/display/vga.c +1 -0
index 63421f9ee8..5d3848a37e 100644
@@ -2044,6 +2044,7 @@ static int vga_common_post_load(void *opaque, int version_id)
     /* force refresh */
     s->graphic_mode = -1;
     vbe_update_vgaregs(s);
+    vga_update_memory_access(s);
     return 0;
 }
 
Signature · 1 line
2.13.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Dr. David Alan Gilbert (git)

From: "Dr. David Alan Gilbert" <[email protected]>

After migration the chain4 alias mapping added by 80763888 (in 2011) might be missing, since there's no call to vga_update_memory_access in the post_load after the registers are updated. Add it back.

Interesting looking at vga_update_memory_access() from 80763888 and what is currently there O:-)