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.
The VFIO device resolver (
vfio_assigned_device/src/resolver.rs) duplicates the container → group → IOMMU → device setup flow that already exists inuser_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.