mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
xend, passthrough: Small fix to find_all_the_multi_functions()
From: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
02a4e58f0b
commit
8fb16359d5
1 file changed
+4
-1
@@ -830,7 +830,10 @@ class PciDevice:
|
||||
|
||||
def find_all_the_multi_functions(self):
|
||||
sysfs_mnt = find_sysfs_mnt()
|
||||
parent = pci_dict_to_bdf_str(self.find_parent())
|
||||
parentdict = self.find_parent()
|
||||
if parentdict is None :
|
||||
return [ self.name ]
|
||||
parent = pci_dict_to_bdf_str(parentdict)
|
||||
pci_names = os.popen('ls ' + sysfs_mnt + SYSFS_PCI_DEVS_PATH + '/' + \
|
||||
parent + '/').read()
|
||||
funcs = extract_the_exact_pci_names(pci_names)
|
||||
|
||||