]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Simplify slot allocation
authorAndrea Bolognani <abologna@redhat.com>
Thu, 1 Jun 2017 13:18:50 +0000 (15:18 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Sat, 15 Jul 2017 12:50:42 +0000 (14:50 +0200)
commit2bd0658d7cc886209a53bae23c20adbb7d4f91ac
tree1d944af3c28f73de7c5bad22b9373221cb3955f0
parentdd9b29dad8ec3d5372ee5e857ab0922fecb26718
conf: Simplify slot allocation

The current algorithm for slot allocation tries to be clever
and avoid looking at buses / slots more than once unless it's
necessary. Unfortunately that makes the code more complex,
and it will cause problem later on in some situations unless
even more complex code is added.

Since the performance gains are going to be pretty modest
anyway, we can just get rid of the extra complexity and use a
completely  straighforward implementation instead.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Laine Stump <laine@laine.org>
src/conf/domain_addr.c
src/conf/domain_addr.h