Re: [Qemu-devel] [PATCHv5 12/12] libqos: Change PCI accessors to take opaque BAR handle

2016-10-25 Thread Greg Kurz
On Mon, 24 Oct 2016 16:00:01 +1100 David Gibson wrote: > The usual use model for the libqos PCI functions is to map a specific PCI > BAR using qpci_iomap() then pass the returned token into IO accessor > functions. This, and the fact that iomap() returns a (void *) which > actually contains a PC

[Qemu-devel] [PATCHv5 12/12] libqos: Change PCI accessors to take opaque BAR handle

2016-10-23 Thread David Gibson
The usual use model for the libqos PCI functions is to map a specific PCI BAR using qpci_iomap() then pass the returned token into IO accessor functions. This, and the fact that iomap() returns a (void *) which actually contains a PCI space address, kind of suggests that the return value from ioma