Skip to content

Conversation

@Lencerf
Copy link
Collaborator

@Lencerf Lencerf commented Jan 3, 2026

No description provided.

The vhost-user protocol requires 64-bit device features, but the virtio
spec allows 128. This commit truncates features to 64 bits before
sending, fixing a bug where all 128 bits were sent, causing feature
negotiation to fail.

Fixes: 128153e ("fix(virtio): extend virtio feature to 128 bits")
Signed-off-by: Changyuan Lyu <changyuanl@google.com>
A VirtIO device generally needs exclusive access to specific resources
on the host. Creating multiple devices from the same config to serve
multiple VMs simultaneously could lead to resource contention.

Especially, commit de79b5f made device creation ahead of connection
acceptance, and failed virtio-net devices, because when 1 virtio-net
device is running, another virtio-net device is created, and the latter
opens the same tap again, interfering with the first device's IO.

Fixes: de79b5f ("fix(vu): create devices before accepting connections")
Signed-off-by: Changyuan Lyu <changyuanl@google.com>
@Lencerf Lencerf merged commit e8619ea into google:main Jan 3, 2026
5 checks passed
@Lencerf Lencerf deleted the fix/vhost-user-backend branch January 3, 2026 01:11
@coveralls
Copy link

Pull Request Test Coverage Report for Build 20670071517

Details

  • 0 of 2 (0.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 26.505%

Changes Missing Coverage Covered Lines Changed/Added Lines %
alioth-cli/src/vu.rs 0 1 0.0%
alioth/src/virtio/vu/backend.rs 0 1 0.0%
Totals Coverage Status
Change from base Build 20664413680: 0.0%
Covered Lines: 3587
Relevant Lines: 13993

💛 - Coveralls

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