aboutsummaryrefslogtreecommitdiff
path: root/hw/vmware_vga.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-12-18 08:08:08 +1000
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-18 11:26:32 -0600
commitee3e41a9a0194af21d0da75f5afd87bea3738cf3 (patch)
treea4e174222059f291f006e83e03c3786f52aadf48 /hw/vmware_vga.c
parentf0138a63a41fe26bcef61d031ae53d872d12a992 (diff)
Make sure to enable dirty log tracking for VMware VGA
This is needed for VMware VGA to work properly under KVM. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/vmware_vga.c')
-rw-r--r--hw/vmware_vga.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c
index 07befc85de..fcb680878d 100644
--- a/hw/vmware_vga.c
+++ b/hw/vmware_vga.c
@@ -1169,6 +1169,10 @@ static void pci_vmsvga_map_mem(PCIDevice *pci_dev, int region_num,
#endif
cpu_register_physical_memory(s->vram_base, s->vga.vram_size,
iomemtype);
+
+ s->vga.map_addr = addr;
+ s->vga.map_end = addr + s->vga.vram_size;
+ vga_dirty_log_start(&s->vga);
}
static void pci_vmsvga_map_fifo(PCIDevice *pci_dev, int region_num,