Skip to content

Conversation

changlei-li
Copy link
Contributor

SR-IOV (Single Root I/O Virtualization) is a technology that allows a single physical PCI Express (PCIe) device, such as a network adapter, to be shared efficiently among multiple virtual machines (VMs) or containers. It achieves this by creating Virtual Functions (VFs) that act as lightweight PCIe functions, each assigned to a VM, while the Physical Function (PF) remains responsible for managing the device.

Add check in Sysfs.is_physical - check if there is "physfn" in the device dir to filter out VF, then XAPI will not create PIF object for VF during scan.

@changlei-li
Copy link
Contributor Author

The method at https://github.com/xapi-project/xen-api/blob/v25.22.0/ocaml/xapi/xapi_pci_helpers.ml#L68-L69 appears to use a different path, but after resolving the symlink, both methods actually refer to the same location.

@changlei-li changlei-li force-pushed the private/changleli/CA-412146 branch from 9367f2f to ff83be0 Compare June 13, 2025 08:15
@changlei-li changlei-li force-pushed the private/changleli/CA-412146 branch from ff83be0 to 7762a50 Compare June 13, 2025 10:45
SR-IOV (Single Root I/O Virtualization) is a technology that
allows a single physical PCI Express (PCIe) device, such as a
network adapter, to be shared efficiently among multiple virtual
machines (VMs) or containers. It achieves this by creating
Virtual Functions (VFs) that act as lightweight PCIe functions,
each assigned to a VM, while the Physical Function (PF) remains
responsible for managing the device.

Add check in Sysfs.is_physical - check if there is "physfn" in
the device dir to filter out VF, then XAPI will not create PIF
object for VF during scan.

Signed-off-by: Changlei Li <[email protected]>
@changlei-li changlei-li force-pushed the private/changleli/CA-412146 branch from 7762a50 to d32c7ce Compare June 16, 2025 05:27
@changlei-li
Copy link
Contributor Author

219408 Ring3: BST + BVT
219411 Networking: SRIOV
pass

@robhoes robhoes added this pull request to the merge queue Jun 16, 2025
Merged via the queue into xapi-project:master with commit c3186c4 Jun 16, 2025
16 checks passed
@changlei-li changlei-li deleted the private/changleli/CA-412146 branch June 18, 2025 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants