]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-i386: add q35 0xcf8 port as coalesced_pio
authorPeng Hao <peng.hao2@zte.com.cn>
Wed, 17 Oct 2018 16:52:57 +0000 (00:52 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Oct 2018 11:44:11 +0000 (13:44 +0200)
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>
hw/pci-host/q35.c

index 02f95765880a8e0be1e3cdfcfc7994c76b8f6a1d..8ce1e09932523ce090380f0d7e0669f72013ae7a 100644 (file)
@@ -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,