From 4b16eb9d9570c9b311d514b840eb51b25fcc21a1 Mon Sep 17 00:00:00 2001 From: aliguori Date: Fri, 17 Apr 2009 14:26:41 +0000 Subject: vga: Cleanup dirty logging (Jan Kiszka) In theory, there are no more quirks in the KVM slot management that requires dirty log start/stop all over the place. We just have to start the logging each time the mapping may have changed. This patch drops vga_dirty_log_stop for both standard and cirrus VGA. It also reverts #6851 as it was obviously a tribute to the old slot system. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7141 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/cirrus_vga.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'hw/cirrus_vga.c') diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 2200ae03fa..114681e7de 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -2618,8 +2618,6 @@ static CPUWriteMemoryFunc *cirrus_linear_bitblt_write[3] = { static void map_linear_vram(CirrusVGAState *s) { - vga_dirty_log_stop((VGAState *)s); - if (!s->map_addr && s->lfb_addr && s->lfb_end) { s->map_addr = s->lfb_addr; s->map_end = s->lfb_end; @@ -2631,16 +2629,11 @@ static void map_linear_vram(CirrusVGAState *s) 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, @@ -2658,15 +2651,11 @@ static void map_linear_vram(CirrusVGAState *s) static void unmap_linear_vram(CirrusVGAState *s) { - vga_dirty_log_stop((VGAState *)s); - if (s->map_addr && s->lfb_addr && s->lfb_end) s->map_addr = s->map_end = 0; cpu_register_physical_memory(isa_mem_base + 0xa0000, 0x20000, s->vga_io_memory); - - vga_dirty_log_start((VGAState *)s); } /* Compute the memory access functions */ @@ -3313,8 +3302,6 @@ static void cirrus_pci_lfb_map(PCIDevice *d, int region_num, { CirrusVGAState *s = &((PCICirrusVGAState *)d)->cirrus_vga; - vga_dirty_log_stop((VGAState *)s); - /* XXX: add byte swapping apertures */ cpu_register_physical_memory(addr, s->vram_size, s->cirrus_linear_io_addr); @@ -3346,14 +3333,10 @@ static void pci_cirrus_write_config(PCIDevice *d, PCICirrusVGAState *pvs = container_of(d, PCICirrusVGAState, dev); CirrusVGAState *s = &pvs->cirrus_vga; - vga_dirty_log_stop((VGAState *)s); - pci_default_write_config(d, address, val, len); if (s->map_addr && pvs->dev.io_regions[0].addr == -1) s->map_addr = 0; cirrus_update_memory_access(s); - - vga_dirty_log_start((VGAState *)s); } void pci_cirrus_vga_init(PCIBus *bus, int vga_ram_size) -- cgit v1.2.3