-
Notifications
You must be signed in to change notification settings - Fork 24
Virtwinkvm 2256 #1029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Virtwinkvm 2256 #1029
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ class HLKPlatformClientsOptions < T::Struct | |
| 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) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The newly added Please update the 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?
endReferences
|
||
|
|
||
| # rubocop:disable Metrics/AbcSize | ||
| # There is no way to reduce the ABC size of this method | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,6 +59,20 @@ | |
| ] | ||
| } | ||
| }, | ||
| "drive_aio_state": { | ||
| "native": { | ||
| "drive_cache_options": [ | ||
| ",cache=none", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why force cache = none?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| ",aio=native" | ||
| ] | ||
| }, | ||
| "threads": { | ||
| "drive_cache_options": [ | ||
| ",cache=none", | ||
| ",aio=threads" | ||
| ] | ||
| } | ||
| }, | ||
| "tpm_state": { | ||
| "true": { | ||
| "devices_list": [ | ||
|
|
||
There was a problem hiding this comment.
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-formatbut for aio. Is there any reason to make drive_aio_state as a state and add it to the client? What do you think?