Skip to content

VFIO: Factor out shared VFIO container/group/device setup helper #3302

@will-j-wright

Description

@will-j-wright

The VFIO device resolver (vfio_assigned_device/src/resolver.rs) duplicates the container → group → IOMMU → device setup flow that already exists in user_driver/src/vfio.rs.

Extract a shared helper into vfio_sys, e.g. open_vfio_device(pci_id) -> (Container, Group, Device), that both the resolver and the user-driver backend can use.

From PR #3248 review feedback.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions