summaryrefslogtreecommitdiffstats
path: root/hw/pci-host/q35.c
diff options
context:
space:
mode:
authorPeng Hao2018-10-17 18:52:57 +0200
committerPaolo Bonzini2018-10-19 13:44:11 +0200
commita8de0115008184788525a0fab5cb74368be808a4 (patch)
treeb2c8a5f47f9060e79dc47507c376224e74d1e770 /hw/pci-host/q35.c
parenttarget-i386: add i440fx 0xcf8 port as coalesced_pio (diff)
downloadqemu-a8de0115008184788525a0fab5cb74368be808a4.tar.gz
qemu-a8de0115008184788525a0fab5cb74368be808a4.tar.xz
qemu-a8de0115008184788525a0fab5cb74368be808a4.zip
target-i386: add q35 0xcf8 port as coalesced_pio
Signed-off-by: Peng Hao <peng.hao2@zte.com.cn> Message-Id: <1539795177-21038-6-git-send-email-peng.hao2@zte.com.cn> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/pci-host/q35.c')
-rw-r--r--hw/pci-host/q35.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c
index 02f9576588..8ce1e09932 100644
--- a/hw/pci-host/q35.c
+++ b/hw/pci-host/q35.c
@@ -51,6 +51,10 @@ static void q35_host_realize(DeviceState *dev, Error **errp)
sysbus_add_io(sbd, MCH_HOST_BRIDGE_CONFIG_DATA, &pci->data_mem);
sysbus_init_ioports(sbd, MCH_HOST_BRIDGE_CONFIG_DATA, 4);
+ /* register q35 0xcf8 port as coalesced pio */
+ memory_region_set_flush_coalesced(&pci->data_mem);
+ memory_region_add_coalescing(&pci->conf_mem, 0, 4);
+
pci->bus = pci_root_bus_new(DEVICE(s), "pcie.0",
s->mch.pci_address_space,
s->mch.address_space_io,