]> xenbits.xensource.com Git - libvirt.git/commit
conf: eliminate concept of "reserveEntireSlot"
authorLaine Stump <laine@laine.org>
Wed, 19 Oct 2016 16:43:04 +0000 (12:43 -0400)
committerLaine Stump <laine@laine.org>
Wed, 11 Jan 2017 09:36:34 +0000 (04:36 -0500)
commit9ff9d9f5a905dee7aabbeeae932efda0df1960f1
tree1411c67ee55ffdffcfe200f6d0df3cb3114f354d
parent9838cad9cd9b7969162e4fe1546689e26af33902
conf: eliminate concept of "reserveEntireSlot"

setting reserveEntireSlot really accomplishes nothing - instead of
going to the trouble of computing the value for reserveEntireSlot and
then possibly setting *all* functions of the slot as in-use, we can
just set the in-use bit only for the specific function being used by a
device.  Later we will know from the context (the PCI connect flags,
and whether we are reserving a specific address or asking for "the
next available") whether or not it is okay to allocate other functions
on the same slot.

Although it's not used yet, we allow specifying "-1" for the function
number when looking for the "next available slot" - this is going to
end up meaning "return the lowest available function in the slot, but
since we currently only provide a function from an otherwise unused
slot, "-1" ends up meaning "0".
src/conf/domain_addr.c
src/conf/domain_addr.h
src/qemu/qemu_domain_address.c