]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: utility function to convert PCI controller model into connect type
authorLaine Stump <laine@laine.org>
Wed, 16 Mar 2016 18:20:52 +0000 (14:20 -0400)
committerLaine Stump <laine@laine.org>
Thu, 14 Apr 2016 18:00:34 +0000 (14:00 -0400)
commita0616ee8a8436e3784c20313b93ddd8909834541
tree28c24a1b2ce427e567d50e6360d25b0adbf50589
parentd1cc4605d72b1df7075e615760a41936d8c6fb96
conf: utility function to convert PCI controller model into connect type

There are two places in qemu_domain_address.c where we have a switch
statement to convert PCI controller models
(VIR_DOMAIN_CONTROLLER_MODEL_PCI*) into the connection type flag that
is matched when looking for an upstream connection for that model of
controller (VIR_PCI_CONNECT_TYPE_*). This patch makes a utility
function in conf/domain_addr.c to do that, so that when a new PCI
controller is added, we only need to add the new model-->connect-type
in a single place.
src/conf/domain_addr.c
src/conf/domain_addr.h
src/libvirt_private.syms
src/qemu/qemu_domain_address.c