diff options
| author | Juan Quintela <quintela@redhat.com> | 2009-09-21 14:35:18 +0200 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:36 -0500 |
| commit | 50af324697cb91d3e7a820e2b94ee0237c0103e2 (patch) | |
| tree | be783ab8f24dffdb819b8491f69c4f0573045852 /hw/vga.c | |
| parent | f22f5b077c164b864dae9776f63ed9e48a973fb6 (diff) | |
| download | focaccia-qemu-50af324697cb91d3e7a820e2b94ee0237c0103e2.tar.gz focaccia-qemu-50af324697cb91d3e7a820e2b94ee0237c0103e2.zip | |
vga: move back dirty_log functions to vga.c
They are needed there on qemu-kvm. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/vga.c')
| -rw-r--r-- | hw/vga.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/vga.c b/hw/vga.c index 514371c39b..6cbd3d3a52 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -28,6 +28,7 @@ #include "vga_int.h" #include "pixel_ops.h" #include "qemu-timer.h" +#include "kvm.h" //#define DEBUG_VGA //#define DEBUG_VGA_MEM @@ -1576,6 +1577,17 @@ static void vga_sync_dirty_bitmap(VGACommonState *s) } } +void vga_dirty_log_start(VGACommonState *s) +{ + if (kvm_enabled() && s->map_addr) + kvm_log_start(s->map_addr, s->map_end - s->map_addr); + + if (kvm_enabled() && s->lfb_vram_mapped) { + kvm_log_start(isa_mem_base + 0xa0000, 0x8000); + kvm_log_start(isa_mem_base + 0xa8000, 0x8000); + } +} + /* * graphic modes */ |