summaryrefslogtreecommitdiff
path: root/hw/vga.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/vga.c')
-rw-r--r--hw/vga.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/hw/vga.c b/hw/vga.c
index 29a9f817f..9dc4cbf11 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1592,6 +1592,18 @@ static void mark_dirty(target_phys_addr_t start, target_phys_addr_t len)
}
}
+void vga_dirty_log_stop(VGACommonState *s)
+{
+ if (kvm_enabled() && s->map_addr && s1)
+ kvm_log_stop(s->map_addr, s->map_end - s->map_addr);
+
+ if (kvm_enabled() && s->lfb_vram_mapped && s2) {
+ kvm_log_stop(isa_mem_base + 0xa0000, 0x8000);
+ kvm_log_stop(isa_mem_base + 0xa8000, 0x8000);
+ }
+ s1 = s2 = 0;
+}
+
void vga_dirty_log_start(VGACommonState *s)
{
if (kvm_enabled() && s->map_addr)
@@ -1610,18 +1622,6 @@ void vga_dirty_log_start(VGACommonState *s)
}
}
-void vga_dirty_log_stop(VGACommonState *s)
-{
- if (kvm_enabled() && s->map_addr && s1)
- kvm_log_stop(s->map_addr, s->map_end - s->map_addr);
-
- if (kvm_enabled() && s->lfb_vram_mapped && s2) {
- kvm_log_stop(isa_mem_base + 0xa0000, 0x8000);
- kvm_log_stop(isa_mem_base + 0xa8000, 0x8000);
- }
- s1 = s2 = 0;
-}
-
/*
* graphic modes
*/