vga/migration: Update memory map in post_load
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 4 Aug 2017 11:33:29 +0000 (12:33 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 1 Sep 2017 11:52:43 +0000 (13:52 +0200)
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.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-id: 20170804113329.13609-1-dgilbert@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/vga.c

index 6fc8c8708a2eab52f7413b128c3c8def68c8bec3..ed24ef7076eb91fa8e6018fba495907923ba2b9d 100644 (file)
@@ -2050,6 +2050,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;
 }