Skip to content

qcontainer: handle unsupported parameters for scsi-generic driver#4353

Merged
YongxueHong merged 1 commit intoavocado-framework:masterfrom
YongxueHong:KVMAUTOMA-5184
Apr 3, 2026
Merged

qcontainer: handle unsupported parameters for scsi-generic driver#4353
YongxueHong merged 1 commit intoavocado-framework:masterfrom
YongxueHong:KVMAUTOMA-5184

Conversation

@YongxueHong
Copy link
Copy Markdown

Add validation to prevent setting unsupported aio and cache parameters for scsi-generic driver, which causes QEMU errors. When these parameters are detected, log warnings and set them to None.

ID: 5184

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds compatibility handling for the scsi-generic driver by resetting unsupported aio and cache parameters and logging warnings. It also includes a null check for the cache variable. Reviewers suggested failing explicitly with a ValueError for unsupported aio settings instead of falling back, and identified a typo in a log message where cache.direct was repeated.

Comment thread virttest/qemu_devices/qcontainer.py
Comment thread virttest/qemu_devices/qcontainer.py Outdated
Add validation to prevent setting unsupported aio and cache parameters
for scsi-generic driver, which causes QEMU errors. When these parameters
are detected, log warnings and set them to None.

Signed-off-by: Yongxue Hong <yhong@redhat.com>
@YongxueHong
Copy link
Copy Markdown
Author

Hi @zhencliu @qingwangrh
Could you help review this PR? Thanks a lot!

@qingwangrh
Copy link
Copy Markdown
Contributor

The configuration works as expected, LGTM

@YongxueHong
Copy link
Copy Markdown
Author

Thanks all, let's merge it.

@YongxueHong YongxueHong merged commit 31d5721 into avocado-framework:master Apr 3, 2026
29 checks passed
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.

3 participants