Skip to content

Virtwinkvm 2256#1029

Open
elizashurov wants to merge 2 commits into
HCK-CI:masterfrom
elizashurov:VIRTWINKVM-2256
Open

Virtwinkvm 2256#1029
elizashurov wants to merge 2 commits into
HCK-CI:masterfrom
elizashurov:VIRTWINKVM-2256

Conversation

@elizashurov

Copy link
Copy Markdown
Contributor

Adds CLI flags and setup-manager support for aio=native/aio=threads on
virtual disks. Both modes also set cache=none.

Adds CLI flags and setup-manager support for aio=native/aio=threads on
virtual disks. Both modes also set cache=none.

Signed-off-by: Elizabeth Ashurov <eashurov@redhat.com>
Sets drive_aio_state from the CLI flag on the functest platform.

Signed-off-by: Elizabeth Ashurov <eashurov@redhat.com>
@elizashurov elizashurov requested a review from kostyanf14 July 13, 2026 12:15

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

Copy link
Copy Markdown

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 introduces support for configuring the drive AIO state (--aio-native and --aio-threads) for virtual disks, including CLI option parsing, validation to prevent conflicting configurations, and propagation of these settings to the platform options. Feedback is provided regarding a missing update to the merge! method in HLKPlatformClientsOptions to ensure the new drive_aio_state property is correctly merged.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

prop :vbs_state, T.nilable(T::Boolean)
prop :ctrl_net_device, T.nilable(String)
prop :fw_type, T.nilable(String)
prop :drive_aio_state, T.nilable(String)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The newly added drive_aio_state property is missing from the merge! method of HLKPlatformClientsOptions. This will cause drive_aio_state to be silently ignored when merging client options.

Please update the merge! method to include it:

      def merge!(other)
        self.viommu_state = other.viommu_state unless other.viommu_state.nil?
        self.enlightenments_state = other.enlightenments_state unless other.enlightenments_state.nil?
        self.vbs_state = other.vbs_state unless other.vbs_state.nil?
        self.ctrl_net_device = other.ctrl_net_device unless other.ctrl_net_device.nil?
        self.fw_type = other.fw_type unless other.fw_type.nil?
        self.drive_aio_state = other.drive_aio_state unless other.drive_aio_state.nil?
      end
References
  1. Avoid replacing simple, explicit property assignments with dynamic metaprogramming (such as iterating over properties and using public_send) solely to satisfy RuboCop metrics like Metrics/AbcSize, as explicit code is often clearer and easier to understand.


Models::HLKPlatform.from_json_file(platform_json, logger)
platform = Models::HLKPlatform.from_json_file(platform_json, logger)
platform.clients_options.drive_aio_state = options.test.drive_aio_state

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think about something like --fs-test-image-format but for aio. Is there any reason to make drive_aio_state as a state and add it to the client? What do you think?

"drive_aio_state": {
"native": {
"drive_cache_options": [
",cache=none",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why force cache = none?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This matches the QEMU command from the Kar tests logs. And according to info from the internet, it is also recommended to use cache=none with aio=native

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