summaryrefslogtreecommitdiff
path: root/hw/vmware_vga.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-08-23 13:02:33 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2012-09-11 18:15:36 -0300
commitbd8f2f5d7034172a53c5a5b229613761f3297493 (patch)
tree817a167a091ed6055239b9d14ff7962f6513f0f6 /hw/vmware_vga.c
parentbb880ded7a6a77b2a7818e6302ac55fbd9ba5e86 (diff)
downloadqemu-bd8f2f5d7034172a53c5a5b229613761f3297493.tar.gz
qemu-bd8f2f5d7034172a53c5a5b229613761f3297493.tar.bz2
qemu-bd8f2f5d7034172a53c5a5b229613761f3297493.zip
VGA: Flush coalesced MMIO on related MMIO/PIO accesses
In preparation of stopping to flush coalesced MMIO unconditionally on vmexits, mark VGA MMIO and PIO regions as synchronous /wrt coalesced MMIO and flush the buffer explicitly on PIO accesses that do not use generic memory regions yet. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'hw/vmware_vga.c')
-rw-r--r--hw/vmware_vga.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c
index b68e88367f..e815a04e9f 100644
--- a/hw/vmware_vga.c
+++ b/hw/vmware_vga.c
@@ -1186,6 +1186,7 @@ static int pci_vmsvga_initfn(PCIDevice *dev)
memory_region_init_io(&s->io_bar, &vmsvga_io_ops, &s->chip,
"vmsvga-io", 0x10);
+ memory_region_set_flush_coalesced(&s->io_bar);
pci_register_bar(&s->card, 0, PCI_BASE_ADDRESS_SPACE_IO, &s->io_bar);
vmsvga_init(&s->chip, pci_address_space(dev),