Skip to content

vhost-user-block: Fix get_config interopability#7617

Merged
rbradford merged 2 commits intocloud-hypervisor:mainfrom
rbradford:dev/rbradford/fix-vhost-user-block
Jan 20, 2026
Merged

vhost-user-block: Fix get_config interopability#7617
rbradford merged 2 commits intocloud-hypervisor:mainfrom
rbradford:dev/rbradford/fix-vhost-user-block

Conversation

@rbradford
Copy link
Copy Markdown
Member

  • virtio-devices: vhost-user: blk: Use zero configuration offset
  • vhost-user-block: Return subset of config space requested

Based upon the discussion and in
rust-vmm/vhost#29 (comment) and the QEMU
behaviour the get_config offset should be zero. This was not caught by
our integration tests as the vhost-user-blk backend as implemented in
this repository does not use the offset.

Fixes: cloud-hypervisor#7615

Signed-off-by: Rob Bradford <rbradford@meta.com>
@rbradford rbradford requested a review from a team as a code owner January 19, 2026 16:17
@rbradford rbradford force-pushed the dev/rbradford/fix-vhost-user-block branch from 310a176 to f70770e Compare January 19, 2026 16:19
The spec says simply that that an empty payload should be returned on
error. Be slightly more helpful by adding a warning.

Signed-off-by: Rob Bradford <rbradford@meta.com>
@rbradford rbradford force-pushed the dev/rbradford/fix-vhost-user-block branch from f70770e to ff2644a Compare January 19, 2026 16:22
Copy link
Copy Markdown
Member

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

PS: Also seeing your @meta.com> for the first time now, nice 😎

@rbradford rbradford added this pull request to the merge queue Jan 20, 2026
Merged via the queue into cloud-hypervisor:main with commit 25e8e64 Jan 20, 2026
43 checks passed
@likebreath likebreath added the bug-fix Bug fix to include in release notes label Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix Bug fix to include in release notes

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants