mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
On some hosts: [root@localhost ~]# ls /sys/bus/pci/devices/0000:00:05.0/ 0000:00:05.0:pcie00 0000:05:00.0 class driver local_cpus resource subsystem_vendor 0000:00:05.0:pcie01 broken_parity_status config enable modalias subsystem uevent 0000:00:05.0:pcie02 bus device irq power subsystem_device vendor Here we should only get 0000:05:00.0, but we also get 0000:00:05.0 unexpectedly. With this patch, xend only extracts the exact BDF(s). Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
The file test.py here is from the Zope project, and is Copyright (c) 2001, 2002 Zope Corporation and Contributors. This file is released under the Zope Public License, version 2.0, a copy of which is in the file ZPL-2.0.