]> xenbits.xensource.com Git - libvirt.git/commit
qemu: new functions to calculate/set device pciConnectFlags
authorLaine Stump <laine@laine.org>
Sun, 4 Sep 2016 20:03:57 +0000 (16:03 -0400)
committerLaine Stump <laine@laine.org>
Mon, 14 Nov 2016 19:05:03 +0000 (14:05 -0500)
commitbd776c2b091610b0cecb17dbde1a2198d89079b6
tree7117504008ef8ce80dab8689700ae81458653876
parent50adb8a660c97662ed96aed40f5b04959229976b
qemu: new functions to calculate/set device pciConnectFlags

The lowest level function of this trio
(qemuDomainDeviceCalculatePCIConnectFlags()) aims to be the single
authority for the virDomainPCIConnectFlags to use for any given device
using a particular arch/machinetype/qemu-binary.

qemuDomainFillDevicePCIConnectFlags() sets info->pciConnectFlags in a
single device (unless it has no virDomainDeviceInfo, in which case
it's a NOP).

qemuDomainFillAllPCIConnectFlags() sets info->pciConnectFlags in all
devices that have a virDomainDeviceInfo

The latter two functions aren't called anywhere yet. This commit is
just making them available. Later patches will replace all the current
hodge-podge of flag settings with calls to this single authority.
src/conf/device_conf.h
src/qemu/qemu_domain_address.c