def _get_guest_pci_device(self, pci_device):
    dbsf = pci_utils.parse_address(pci_device['address'])
    dev = vconfig.LibvirtConfigGuestHostdevPCI()
    (dev.domain, dev.bus, dev.slot, dev.function) = dbsf
    if (CONF.libvirt.virt_type in ('xen',)):
        dev.managed = 'no'
    if (CONF.libvirt.virt_type in ('kvm', 'qemu')):
        dev.managed = 'yes'
    return dev
def _get_guest_pci_device(self, pci_device):
    dbsf = pci_utils.parse_address(pci_device['address'])
    dev = vconfig.LibvirtConfigGuestHostdevPCI()
    (dev.domain, dev.bus, dev.slot, dev.function) = dbsf
    if (CONF.libvirt.virt_type in ('xen',)):
        dev.managed = 'no'
    if (CONF.libvirt.virt_type in ('kvm', 'qemu')):
        dev.managed = 'yes'
    return dev