Skip to content

Feat/vfio user - #488

Merged
Lencerf merged 4 commits into
google:mainfrom
Lencerf:feat/vfio-user
Sep 8, 2026
Merged

Feat/vfio user#488
Lencerf merged 4 commits into
google:mainfrom
Lencerf:feat/vfio-user

Conversation

@Lencerf

@Lencerf Lencerf commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@coveralls

coveralls commented Aug 31, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 34173877298

Coverage increased (+1.9%) to 37.28%

Details

  • Coverage increased (+1.9%) from the base build.
  • Patch coverage: 74 uncovered changes across 5 files (347 of 421 lines covered, 82.42%).
  • 209 coverage regressions across 50 files.

Uncovered Changes

File Changed Covered %
alioth/src/vfio/user/conn.rs 249 202 81.12%
alioth/src/vm/vm.rs 18 0 0.0%
alioth/src/vfio/user/device.rs 148 142 95.95%
alioth-cli/src/boot/boot.rs 5 3 60.0%
alioth/src/vfio/user/user.rs 1 0 0.0%

Coverage Regressions

209 previously-covered lines in 50 files lost coverage.

Top 10 Files by Coverage Loss Lines Losing Coverage Coverage
alioth/src/firmware/acpi/acpi.rs 32 0.0%
alioth/src/virtio/dev/vsock/uds_vsock.rs 24 82.17%
alioth/src/hv/kvm/vm/vm.rs 18 0.0%
alioth-cli/src/boot/boot.rs 15 55.08%
alioth/src/board/board_amd64/board_amd64.rs 7 3.7%
alioth/src/fuse/passthrough.rs 7 0.0%
alioth/src/virtio/dev/fs/vu.rs 7 0.0%
alioth/src/sys/linux/ioctl.rs 6 18.75%
alioth/src/vfio/iommu.rs 6 0.0%
alioth/src/vfio/pci.rs 6 89.55%

Coverage Stats

Coverage Status
Relevant Lines: 15447
Covered Lines: 5583
Line Coverage: 36.14%
Relevant Branches: 1554
Covered Branches: 755
Branch Coverage: 48.58%
Branches in Coverage %: Yes
Coverage Strength: 45.19 hits per line

💛 - Coveralls

@Lencerf
Lencerf force-pushed the feat/vfio-user branch 6 times, most recently from 511e05e to 0dfb882 Compare September 7, 2026 23:57
Assisted-by: Antigravity:Gemini-3.7-Flash
Signed-off-by: Changyuan Lyu <changyuanl@google.com>
Assisted-by: Antigravity:Gemini-3.7-Flash
Signed-off-by: Changyuan Lyu <changyuanl@google.com>
Create VfioUserDevice struct wrapping VfioUserSession. Implement the
abstract Device trait to route guest accesses, IRQ settings, and reset
commands. Implement UpdateVfioUserMapping (LayoutChanged callback) to
sync DMA mappings.

Assisted-by: Antigravity:Gemini-3.7-Flash
Signed-off-by: Changyuan Lyu <changyuanl@google.com>
Implement add_vfio_user_dev in Machine to connect, negotiate version,
register DMA callback, and register VfioPciDev. Update CLI configuration
and boot parsing to expose --vfio-user socket=<path> command line flag.

Register memory change callback after successful device addition to
prevent leaking open sockets on failure.

TAG=agy
CONV=563b5413-8af4-45cc-a898-1abde6e4000b
@Lencerf
Lencerf merged commit af11fb8 into google:main Sep 8, 2026
12 checks passed
@Lencerf
Lencerf deleted the feat/vfio-user branch September 8, 2026 00:40
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.

2 participants