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

2016-10-21 Thread David Gibson
On Fri, Oct 21, 2016 at 12:05:06PM +0200, Greg Kurz wrote: > On Fri, 21 Oct 2016 12:19:45 +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}*().

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

2016-10-21 Thread Greg Kurz
On Fri, 21 Oct 2016 12:19:45 +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] [PATCHv4 04/11] libqos: Better handling of PCI legacy IO

2016-10-20 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