-
Notifications
You must be signed in to change notification settings - Fork 292
CA-412146 Filter out VF when scan #6528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
robhoes
merged 1 commit into
xapi-project:master
from
changlei-li:private/changleli/CA-412146
Jun 16, 2025
Merged
CA-412146 Filter out VF when scan #6528
robhoes
merged 1 commit into
xapi-project:master
from
changlei-li:private/changleli/CA-412146
Jun 16, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
last-genius
reviewed
Jun 13, 2025
9367f2f
to
ff83be0
Compare
psafont
reviewed
Jun 13, 2025
ff83be0
to
7762a50
Compare
changlei-li
commented
Jun 13, 2025
psafont
reviewed
Jun 13, 2025
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]>
7762a50
to
d32c7ce
Compare
219408 Ring3: BST + BVT |
psafont
approved these changes
Jun 16, 2025
robhoes
approved these changes
Jun 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.