• L
    conf: utility function to convert PCI controller model into connect type · a0616ee8
    Laine Stump 提交于
    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.
    a0616ee8
qemu_domain_address.c 59.9 KB