From 37abf8d234d41a7cda986c594c9107c9edddb7d9 Mon Sep 17 00:00:00 2001 From: Peng Hao Date: Thu, 18 Oct 2018 00:52:56 +0800 Subject: target-i386: add i440fx 0xcf8 port as coalesced_pio Signed-off-by: Peng Hao Message-Id: <1539795177-21038-5-git-send-email-peng.hao2@zte.com.cn> Signed-off-by: Paolo Bonzini --- hw/pci-host/piix.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hw/pci-host') diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 0e608347c1..da73743fa2 100644 --- a/hw/pci-host/piix.c +++ b/hw/pci-host/piix.c @@ -327,6 +327,10 @@ static void i440fx_pcihost_realize(DeviceState *dev, Error **errp) sysbus_add_io(sbd, 0xcfc, &s->data_mem); sysbus_init_ioports(sbd, 0xcfc, 4); + + /* register i440fx 0xcf8 port as coalesced pio */ + memory_region_set_flush_coalesced(&s->data_mem); + memory_region_add_coalescing(&s->conf_mem, 0, 4); } static void i440fx_realize(PCIDevice *dev, Error **errp) -- cgit 1.4.1 From a8de0115008184788525a0fab5cb74368be808a4 Mon Sep 17 00:00:00 2001 From: Peng Hao Date: Thu, 18 Oct 2018 00:52:57 +0800 Subject: target-i386: add q35 0xcf8 port as coalesced_pio Signed-off-by: Peng Hao Message-Id: <1539795177-21038-6-git-send-email-peng.hao2@zte.com.cn> Signed-off-by: Paolo Bonzini --- hw/pci-host/q35.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hw/pci-host') 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, -- cgit 1.4.1