-
Notifications
You must be signed in to change notification settings - Fork 189
nvme_driver: adding admin queue logging #3409
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: main
Are you sure you want to change the base?
Changes from all commits
6e91439
0a9f871
aec5033
1c8bc55
30b5bad
6076ef6
1e19679
fc20c57
4c15d5d
4c9456c
dbab214
6412280
dea6e9e
63b28f9
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 |
|---|---|---|
|
|
@@ -132,7 +132,7 @@ impl BootCommandLineOptions { | |
| confidential_debug: false, | ||
| enable_vtl2_gpa_pool: Vtl2GpaPoolConfig::Heuristics(Vtl2GpaPoolLookupTable::Release), // use the release config by default | ||
| sidecar: SidecarOptions::default(), | ||
| disable_nvme_keep_alive: true, | ||
| disable_nvme_keep_alive: false, | ||
| vtl2_gpa_pool_numa_split: false, | ||
| } | ||
| } | ||
|
|
@@ -141,9 +141,6 @@ impl BootCommandLineOptions { | |
| impl BootCommandLineOptions { | ||
| /// Parse arguments from a command line. | ||
| pub fn parse(&mut self, cmdline: &str) { | ||
| // Workaround for a host side issue: disable NVMe keepalive by default. | ||
| self.disable_nvme_keep_alive = true; | ||
|
|
||
| let mut override_vtl2_gpa_pool: Option<Vtl2GpaPoolConfig> = None; | ||
| for arg in cmdline.split_whitespace() { | ||
| if arg.starts_with(OPENHCL_CONFIDENTIAL_DEBUG_ENV_VAR_NAME) { | ||
|
|
@@ -186,8 +183,8 @@ impl BootCommandLineOptions { | |
| } | ||
| } else if arg.starts_with(DISABLE_NVME_KEEP_ALIVE) { | ||
| let arg = arg.split_once('=').map(|(_, arg)| arg); | ||
| if arg.is_some_and(|a| a == "0") { | ||
| self.disable_nvme_keep_alive = false; | ||
| if arg.is_some_and(|a| a != "0") { | ||
| self.disable_nvme_keep_alive = true; | ||
| } | ||
|
Comment on lines
+186
to
188
|
||
| } else if arg.starts_with(VTL2_GPA_POOL_NUMA) { | ||
| if let Some((_, arg)) = arg.split_once('=') { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -444,16 +444,17 @@ impl LoadedVm { | |
| capabilities_flags, | ||
| } = message; | ||
|
|
||
| // If the host provided timeout hint is >= uint16::max | ||
| // seconds, we treat that as a signal from the host that no | ||
| // If the host provided timeout hint is >= 59 seconds, | ||
| // we treat that as a signal from the host that no | ||
| // timeout duration was set. We instead limit servicing to | ||
| // 200s in that case. | ||
| let timeout_hint = if timeout_hint >= Duration::from_secs(u16::MAX as u64) { | ||
| // 59s in that case. | ||
| let timeout_hint = if timeout_hint >= Duration::from_secs(59) { | ||
| tracing::info!( | ||
| CVM_ALLOWED, | ||
| "host provided UINT16_MAX timeout hint, defaulting to 200s" | ||
| host_timeout_hint_ms = timeout_hint.as_millis() as u64, | ||
|
||
| "host provided timeout hint > 59s, defaulting to 59s" | ||
| ); | ||
| Duration::from_secs(200) | ||
| Duration::from_secs(59) | ||
|
Comment on lines
+447
to
+457
|
||
| } else { | ||
| timeout_hint | ||
| }; | ||
|
|
||
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.
With the new default
disable_nvme_keep_alive: false, the parser no longer disables keepalive whenOPENHCL_DISABLE_NVME_KEEP_ALIVEis present without an explicit=...value (becauseargbecomesNoneand the branch is skipped). For backward-compatible boolean-flag behavior, treat a missing value astrue(disable keepalive), and only treat an explicit=0asfalse.