def METHOD_NAME(self, devtype, opts=None, machine='pc'):
    """
    Run QEMU with `-device DEVTYPE`, return device info from `query-pci`
    """
    with QEMUMachine(self.qemu_bin) as vm:
        vm.set_machine(machine)
        if opts:
            devtype += ',' + opts
        vm.add_args('-device', '%s,id=devfortest' % (devtype))
        vm.add_args('-S')
        vm.launch()
        pcibuses = vm.command('query-pci')
        alldevs = [dev for bus in pcibuses for dev in bus['devices']]
        devfortest = [dev for dev in alldevs
                      if dev['qdev_id'] == 'devfortest']
        return devfortest[0], get_pci_interfaces(vm, devtype)