]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: new function virDomainPCIAddressReserveNextAddr()
authorLaine Stump <laine@laine.org>
Thu, 1 Sep 2016 13:29:01 +0000 (09:29 -0400)
committerLaine Stump <laine@laine.org>
Mon, 24 Oct 2016 17:53:24 +0000 (13:53 -0400)
commit848e7ff2b3f0e756aee4c20e452d59470998fe8a
treec90ca7802c940a6b25adfa0efea34f7fbdaec2c6
parent7c8df1e82f640a081582cf629b6ca104110194e9
conf: new function virDomainPCIAddressReserveNextAddr()

There is an existing virDomainPCIAddressReserveNextSlot() which will
reserve all functions of the next available PCI slot. One place in the
qemu PCI address assignment code requires reserving a *single*
function of the next available PCI slot. This patch modifies and
renames virDomainPCIAddressReserveNextSlot() so that it can fulfill
both the original purpose and the need to reserve a single function.

(This is being done so that the abovementioned code in qemu can have
its "kind of open coded" solution replaced with a call to this new
function).
src/conf/domain_addr.c
src/conf/domain_addr.h
src/libvirt_private.syms