Re: [Qemu-devel] [PATCHv5 04/12] libqos: Better handling of PCI legacy IO

2016-10-25 Thread Greg Kurz
On Mon, 24 Oct 2016 15:59:53 +1100 David Gibson wrote: > The usual model for PCI IO with libqos is to use qpci_iomap() to map a > specific BAR for a PCI device, then perform IOs within that BAR using > qpci_io_{read,write}*(). > > However, certain devices also have legacy PCI IO. In this case,

[Qemu-devel] [PATCHv5 04/12] libqos: Better handling of PCI legacy IO

2016-10-23 Thread David Gibson
The usual model for PCI IO with libqos is to use qpci_iomap() to map a specific BAR for a PCI device, then perform IOs within that BAR using qpci_io_{read,write}*(). However, certain devices also have legacy PCI IO. In this case, instead of (or as well as) being accessed via PCI BARs, the device