microsoft / microsoft/openvmm

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

Open
#3,302 0 comments 1 reaction 2 assignees View on GitHub

@will-j-wright is already working on this.

Since Apr 16, 2026.

  • #3305 by @copilot-swe-agent — closed without merging
enhancement
Dominant language
Rust
Stars
1.9k
Forks
238
Avg merge
1d 15h
Merged PRs (30d)
100

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.