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

2016-10-19 Thread Laurent Vivier
On 19/10/2016 14:25, 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 example, Linux in

[Qemu-devel] [PATCHv2 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