aboutsummaryrefslogtreecommitdiff
path: root/hw/qxl.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/qxl.c
parentbb880ded7a6a77b2a7818e6302ac55fbd9ba5e86 (diff)
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/qxl.c')
-rw-r--r--hw/qxl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index 5b3f484266..43d6a67ecc 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -1910,6 +1910,7 @@ static int qxl_init_common(PCIQXLDevice *qxl)
if (qxl->id == 0) {
vga_dirty_log_start(&qxl->vga);
}
+ memory_region_set_flush_coalesced(&qxl->io_bar);
pci_register_bar(&qxl->pci, QXL_IO_RANGE_INDEX,