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

2016-10-19 Thread David Gibson
On Wed, Oct 19, 2016 at 03:33:33PM +0200, Laurent Vivier wrote: > > > On 19/10/2016 14:25, 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] [PATCHv2 04/11] libqos: Better handling of PCI legacy IO

2016-10-19 Thread Laurent Vivier
On 19/10/2016 14:25, 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, instead of > (

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

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