[Qemu-devel] [PATCH V5 4/4] target-i386: add i440fx 0xcf8 port as coalesced_pio
Signed-off-by: Peng Hao --- hw/pci-host/piix.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 0e60834..da73743 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, >data_mem); sysbus_init_ioports(sbd, 0xcfc, 4); + +/* register i440fx 0xcf8 port as coalesced pio */ +memory_region_set_flush_coalesced(>data_mem); +memory_region_add_coalescing(>conf_mem, 0, 4); } static void i440fx_realize(PCIDevice *dev, Error **errp) -- 1.8.3.1
Re: [Qemu-devel] [PATCH V5 4/4] target-i386: add i440fx 0xcf8 port as coalesced_pio
On Thu, Aug 30, 2018 at 11:50:16PM +0800, Peng Hao wrote: > Signed-off-by: Peng Hao > Reviewed-by: Eduardo Habkost There has been a misunderstanding. I never sent a Reviewed-by line for this patch. -- Eduardo
[Qemu-devel] [PATCH V5 4/4] target-i386: add i440fx 0xcf8 port as coalesced_pio
Signed-off-by: Peng Hao Reviewed-by: Eduardo Habkost --- hw/pci-host/piix.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 0e60834..da73743 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, >data_mem); sysbus_init_ioports(sbd, 0xcfc, 4); + +/* register i440fx 0xcf8 port as coalesced pio */ +memory_region_set_flush_coalesced(>data_mem); +memory_region_add_coalescing(>conf_mem, 0, 4); } static void i440fx_realize(PCIDevice *dev, Error **errp) -- 1.8.3.1