Re: [libvirt] [PATCH v3 3/8] conf: eliminate repetitive code in virDomainPCIAddressGetNextSlot()

2016-12-20 Thread Andrea Bolognani
On Mon, 2016-12-19 at 10:23 -0500, Laine Stump wrote: > virDomainPCIAddressGetNextSlot() starts searching from the last > allocated address and goes to the end of all the buses, then goes back > to the first bus and searchs from there up to the starting point (in s/searchs/searches/ [...] >

[libvirt] [PATCH v3 3/8] conf: eliminate repetitive code in virDomainPCIAddressGetNextSlot()

2016-12-19 Thread Laine Stump
virDomainPCIAddressGetNextSlot() starts searching from the last allocated address and goes to the end of all the buses, then goes back to the first bus and searchs from there up to the starting point (in case any address has been freed since the last time an address was allocated. The loops for