Skip to contentSkip to conversation

[6853] stop dirty logging while updating cirrus bank memory (Glauber Costa)

Qemu-devel Anthony Liguori 1 participant 1 message Mar 13, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6853

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6853
Author:   aliguori
Date:     2009-03-13 18:11:17 +0000 (Fri, 13 Mar 2009)

Log Message:
-----------
stop dirty logging while updating cirrus bank memory (Glauber Costa)

Otherwise, slot tracking gets confused.

This fixes a screen corruption bug with Ubuntu guest installation.

Modified Paths:
--------------

    branches/stable_0_10_0/hw/cirrus_vga.c

Modified: branches/stable_0_10_0/hw/cirrus_vga.c
===================================================================

stable_0_10_0/hw/cirrus_vga.c +5 -0
@@ -2637,11 +2637,16 @@
 
     s->lfb_vram_mapped = 0;
 
+    cpu_register_physical_memory(isa_mem_base + 0xa0000, 0x8000,
+                                (s->vram_offset + s->cirrus_bank_base[0]) | IO_MEM_UNASSIGNED);
+    cpu_register_physical_memory(isa_mem_base + 0xa8000, 0x8000,
+                                (s->vram_offset + s->cirrus_bank_base[1]) | IO_MEM_UNASSIGNED);
     if (!(s->cirrus_srcptr != s->cirrus_srcptr_end)
         && !((s->sr[0x07] & 0x01) == 0)
         && !((s->gr[0x0B] & 0x14) == 0x14)
         && !(s->gr[0x0B] & 0x02)) {
 
+        vga_dirty_log_stop((VGAState *)s);
         cpu_register_physical_memory(isa_mem_base + 0xa0000, 0x8000,
                                     (s->vram_offset + s->cirrus_bank_base[0]) | IO_MEM_RAM);
         cpu_register_physical_memory(isa_mem_base + 0xa8000, 0x8000,