]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: switch PCI address alocation to use virDevicePCIAddress
authorJán Tomko <jtomko@redhat.com>
Fri, 15 Feb 2013 06:48:49 +0000 (07:48 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 20 Feb 2013 12:57:59 +0000 (13:57 +0100)
commitbc28e56b354726f88b4f3ba81ca172bfd87ba281
tree6fe1aba7165d0539e4a1bbde70898c3ad015b87a
parentdd71fa110a05ae480a445a75e7c454914f42789c
qemu: switch PCI address alocation to use virDevicePCIAddress

Some functions were using virDomainDeviceInfo where virDevicePCIAddress
would suffice. Some were only using integers for slots and functions,
assuming the bus numbers are always 0.

Switch from virDomainDeviceInfoPtr to virDevicePCIAddressPtr:
qemuPCIAddressAsString
qemuDomainPCIAddressCheckSlot
qemuDomainPCIAddressReserveAddr
qemuDomainPCIAddressReleaseAddr

Switch from int slot to virDevicePCIAddressPtr:
qemuDomainPCIAddressReserveSlot
qemuDomainPCIAddressReleaseSlot
qemuDomainPCIAddressGetNextSlot

Deleted functions (they would take the same parameters
as ReserveAddr/ReleaseAddr do now.)
qemuDomainPCIAddressReserveFunction
qemuDomainPCIAddressReleaseFunction
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_hotplug.c