Re: [Qemu-devel] [PATCHv3 03/11] libqos: Move BAR assignment to common code

2016-10-20 Thread Greg Kurz
On Thu, 20 Oct 2016 14:43:06 +1100 David Gibson wrote: > The PCI backends in libqos each supply an iomap() and iounmap() function > which is used to set up a specified PCI BAR. But PCI BAR allocation takes > place entirely within PCI space, so doesn't really need per-backend > versions. For exa

[Qemu-devel] [PATCHv3 03/11] libqos: Move BAR assignment to common code

2016-10-19 Thread David Gibson
The PCI backends in libqos each supply an iomap() and iounmap() function which is used to set up a specified PCI BAR. But PCI BAR allocation takes place entirely within PCI space, so doesn't really need per-backend versions. For example, Linux includes generic BAR allocation code used on platform