Repository navigation
openhcl_boot: start skipped singleton CPUs in Linux with sidecar - #5234
Merged
Sunil Muthuswamy (sunilmut) merged 3 commits intoNov 26, 2026
Conversation
Add a regression for a skipped singleton NUMA CPU missing from the default boot_cpus list when sidecar is enabled. Add controls for sidecar AP ownership and explicit per-CPU overrides. The regression intentionally fails until the production fix is applied.
Include CPUs outside retained sidecar nodes in the Linux boot list. Keep node base CPUs with Linux and leave their other CPUs with sidecar. Preserve explicit per-CPU startup overrides. Add a regression covering skipped CPUs between and after sidecar nodes. The original singleton regression now passes.
Check final Linux CPU lists for small and large configurations. Cover singleton gaps, adjacent nodes, and mixed per-CPU overrides. Include 96, 1024, and 3000 CPUs with uneven prepared NUMA groups. The 3000-CPU case tests formatting beyond the 2048-CPU boot limit.
|
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.
🟢 Approval recommended
No active review issues are recorded for the fix assigning CPUs in skipped singleton NUMA nodes to Linux.
No open issues 🎉
What changed in this PR
Fixes OpenHCL’s default CPU assignment with sidecar enabled so CPUs in skipped singleton NUMA nodes start in Linux rather than remaining unassigned.
Changes:
- Builds
boot_cpus=from all CPUs except application processors within retained sidecar nodes. - Preserves explicit per-CPU overrides and sidecar-node creation.
- Adds regression tests for singleton gaps, adjacent nodes, mixed overrides, and large CPU configurations.
| File | Description |
|---|---|
openhcl/openhcl_boot/src/sidecar.rs |
Corrects the default Linux boot CPU list and adds CPU-assignment formatting tests. |
Review effort: Balanced
John Starks (jstarks)
approved these changes
Nov 25, 2026
Sunil Muthuswamy (sunilmut)
merged commit Nov 26, 2026
35dfc23
into
microsoft:main
170 of 177 checks passed
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.
With sidecar enabled and default CPU assignment, NUMA nodes with a single CPU
are skipped for sidecar (the comment says they are kernel-started), but the
Linux
boot_cpus=list was built only from the retained sidecar nodes' baseCPUs. Those singleton CPUs were therefore assigned to neither Linux nor
sidecar, and VP startup could later fail with a missing sidecar-node mapping.
This change builds the default Linux boot list from every CPU except the
application processors inside retained sidecar nodes, so node base CPUs and
CPUs outside any retained node start in Linux. Explicit per-CPU overrides and
sidecar-node creation are unchanged.
Test changes:
before the fix).
adjacent nodes, mixed per-CPU overrides, and 96, 1024, and 3000 CPUs with
uneven NUMA groups (3000 covers formatting beyond the 2048-CPU boot limit).