RFC: sidecar: allow openhcl_boot to specify a state per-cpu, and have openhcl_boot set that state for VPs that have mapped interrupts#2477
Closed
mattkur wants to merge 10 commits intomicrosoft:mainfrom
Closed
Conversation
…hcl_boot set that state for VPs that have mapped interrupts
|
This PR modifies files containing For more on why we check whole files, instead of just diffs, check out the Rustonomicon |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces a mechanism for openhcl_boot to specify per-CPU startup state, allowing it to control which CPUs are started by the sidecar kernel versus the main kernel. This optimization enables CPUs with mapped interrupts to be started immediately by the main kernel, avoiding unnecessary transitions.
Key changes:
- Adds
PerCpuStatestructure to track which CPUs should be started by sidecar - Updates sidecar initialization to respect per-CPU state overrides when specified
- Modifies the boot process to identify CPUs with mapped interrupts and keep them in the main kernel
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| openhcl/sidecar_defs/src/lib.rs | Defines PerCpuState structure and adds it to SidecarParams |
| openhcl/sidecar/src/arch/x86_64/init.rs | Updates sidecar init to apply per-CPU state overrides to cpu_status array |
| openhcl/openhcl_boot/src/sidecar.rs | Modifies sidecar startup and kernel command line generation to use per-CPU state |
| openhcl/openhcl_boot/src/main.rs | Initializes sidecar_cpu_overrides in test code |
| openhcl/openhcl_boot/src/host_params/mod.rs | Adds sidecar_cpu_overrides field to PartitionInfo |
| openhcl/openhcl_boot/src/host_params/dt/mod.rs | Identifies CPUs with mapped interrupts and configures them to stay in main kernel |
mattkur
commented
Nov 22, 2025
Contributor
Author
|
Another engineer will pick up this work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DO NOT MERGE, TESTING IN PROGRESS
Experiment: ask the kernel to online any CPUs that will immediately get interrupts mapped, and ask sidecar
to online the rest.