]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: turn qemuDomainPCIAddressBus into a struct
authorLaine Stump <laine@laine.org>
Thu, 11 Jul 2013 03:29:07 +0000 (23:29 -0400)
committerLaine Stump <laine@laine.org>
Wed, 24 Jul 2013 10:24:57 +0000 (06:24 -0400)
commit23cc5352202a944a14f75f3cfe16045ebe396263
treeeb91cbf9790d865bc68769f5a80fb8e3ad1df5d1
parentd12c281131fbe4d6b88218856013bbeb30704e77
qemu: turn qemuDomainPCIAddressBus into a struct

qemuDomainPCIAddressBus was an array of QEMU_PCI_ADDRESS_SLOT_LAST
uint8_t's, which worked fine as long as every PCI bus was
identical. In the future, some PCI busses will allow connecting PCI
devices, and some will allow PCIe devices; also some will only allow
connection of a single device, while others will allow connecting 31
devices.

In order to keep track of that information for each bus, we need to
turn qemuDomainPCIAddressBus into a struct, for now with just one
member:

   uint8_t slots[QEMU_PCI_ADDRESS_SLOT_LAST];

Additional members will come in later patches.

The item in qemuDomainPCIAddresSet that contains the array of
qemuDomainPCIAddressBus is now called "buses" to be more consistent
with the already existing "nbuses" (and with the new "slots" array).
src/qemu/qemu_command.c