]> xenbits.xensource.com Git - qemu-xen-4.2-testing.git/commitdiff
fix cirrus_vga_load
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 16 Oct 2008 09:22:00 +0000 (10:22 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 16 Oct 2008 09:22:00 +0000 (10:22 +0100)
Fixes a problem in cirrus_vga_load introduced by the "use
main memory for video memory" patch.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/cirrus_vga.c

index 8e1bbc391ed3fddf336fc413fd23410a58dedbdc..e1c18e2af36ccf3761f8b7332b32df75e3fbc239 100644 (file)
@@ -3214,6 +3214,11 @@ static int cirrus_vga_load(QEMUFile *f, void *opaque, int version_id)
             xen_vga_populate_vram(s->lfb_addr);
         } else
             xen_vga_vram_map(vga_acc ? s->lfb_addr : s->stolen_vram_addr, 0);
+
+        if (vga_acc) {
+            s->map_addr = s->lfb_addr;
+            s->map_end = s->lfb_end;
+        }
     } else {
         /* Old image, we have to populate and restore VRAM ourselves */
         xen_vga_populate_vram(s->lfb_addr);