Thanks to visit codestin.com
Credit goes to github.com

Skip to content

vmm: config: Fix generic vhost-user parsing - #8564

Merged
rbradford merged 1 commit into
cloud-hypervisor:mainfrom
rbradford:202607/vhost-user-virtio-id-naming
Jul 9, 2026
Merged

rbradford merged 1 commit into
cloud-hypervisor:mainfrom
rbradford:202607/vhost-user-virtio-id-naming

Conversation

@rbradford

Copy link
Copy Markdown
Member

The generic vhost-user device took its virtio device type on the
command line via the virtio_id parameter, but the same value is
called device_type in the API and the resulting config struct. This
irregularity was due to churn during the review process, device_type
was the intended name.

Accept device_type on the command line and keep virtio_id as a
deprecated alias that logs a warning. The alias will then be removed in
a later release.

Fixes: #8545

Assisted-by: Claude:Opus-4.8
Signed-off-by: Rob Bradford [email protected]

The generic vhost-user device took its virtio device type on the
command line via the `virtio_id` parameter, but the same value is
called `device_type` in the API and the resulting config struct. This
irregularity was due to churn during the review process, `device_type`
was the intended name.

Accept `device_type` on the command line and keep `virtio_id` as a
deprecated alias that logs a warning. The alias will then be removed in
a later release.

Fixes: cloud-hypervisor#8545

Assisted-by: Claude:Opus-4.8
Signed-off-by: Rob Bradford <[email protected]>
@rbradford
rbradford requested a review from a team as a code owner July 8, 2026 19:30
@rbradford

Copy link
Copy Markdown
Member Author

CC @alyssais

Comment thread vmm/src/config.rs
@rbradford
rbradford added this pull request to the merge queue Jul 9, 2026
Merged via the queue into cloud-hypervisor:main with commit 818fc07 Jul 9, 2026
41 checks passed
@github-project-automation github-project-automation Bot moved this from 🆕 New to ✅ Done in Cloud Hypervisor Roadmap Jul 9, 2026
@rbradford rbradford added the bug-fix Bug fix to include in release notes label Jul 9, 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.

Generic vhost-user device_type/virtio_id is inconsistently named

2 participants