Skip to content

Add IommuFD field to the nvDevice#76

Merged
zvonkok merged 3 commits intoNVIDIA:mainfrom
rajatchopra:main
Nov 24, 2025
Merged

Add IommuFD field to the nvDevice#76
zvonkok merged 3 commits intoNVIDIA:mainfrom
rajatchopra:main

Conversation

@rajatchopra
Copy link
Contributor

when IommuFD is supported on the host.

@zvonkok
Copy link
Contributor

zvonkok commented Nov 15, 2025

@rajatchopra for reference: #56, please add test-cases.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for detecting IOMMU file descriptors (IommuFD) on hosts that have iommufd configured and supported. The new field is added to the NvidiaPCIDevice struct to store the IOMMU FD device name.

  • Added IommuFD string field to NvidiaPCIDevice struct
  • Implemented getIOMMUFD() function to detect vfio device names from the vfio-dev directory
  • Integrated IOMMU FD detection into device enumeration with graceful fallback (warning only) when unsupported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

rajatchopra and others added 2 commits November 18, 2025 13:58
…GPUs.

Signed-off-by: Rajat Chopra <rajatc@nvidia.com>
Simple test for proper IOMMUFD parsing

Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
Signed-off-by: Rajat Chopra <rajatc@nvidia.com>
Copy link
Contributor

@zvonkok zvonkok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @rajatchopra

@zvonkok zvonkok merged commit 9a6788d into NVIDIA:main Nov 24, 2025
4 checks passed
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.

3 participants