Consume captured processor topology without firmware reads #142

Manually merged
Owner

Read processor identities from Bootloader's immutable counted snapshot instead of following RSDP/SDT addresses in Kernel. Check uniqueness and actual BSP membership before publishing topology; a CPUID count cannot invent peer identities. Native setup errors prevent Rootd launch.

Builds on #139, LibHandoff #11 and Bootloader #32. Design: #140; manual: Docs #99. The snapshot grants no processor or firmware-read authority.

  • Decode known 2.1/2.2 inputs with explicit absent/malformed handling and checked counted extents.
  • Preserve sparse/full-width identities, reject duplicates and missing BSP, and reserve storage without a fixed CPU ceiling.
  • Replace all three Kernel firmware walkers and remove the arbitrary-lifetime physical-slice API.
  • Cover literal unaligned data, inert poisoned address metadata, invalid ranges and actual identity refusal.
  • Add the standalone data-only diagnostic and native build profile; it does not start APs or attest execution.
  • Update component documentation and the coordinated manual.
  • Pass current-head component CI.
  • Run coherent 1/2/4-vCPU producer-to-consumer data cases. Actual private-root/AP execution remains a separate requirement in #123.
Read processor identities from Bootloader's immutable counted snapshot instead of following RSDP/SDT addresses in Kernel. Check uniqueness and actual BSP membership before publishing topology; a CPUID count cannot invent peer identities. Native setup errors prevent Rootd launch. Builds on #139, [LibHandoff #11](https://git.erikinkinen.fi/erix/lib-handoff/pulls/11) and [Bootloader #32](https://git.erikinkinen.fi/erix/bootloader/pulls/32). Design: [#140](https://git.erikinkinen.fi/erix/kernel/issues/140); manual: [Docs #99](https://git.erikinkinen.fi/erix/docs/pulls/99). The snapshot grants no processor or firmware-read authority. - [x] Decode known 2.1/2.2 inputs with explicit absent/malformed handling and checked counted extents. - [x] Preserve sparse/full-width identities, reject duplicates and missing BSP, and reserve storage without a fixed CPU ceiling. - [x] Replace all three Kernel firmware walkers and remove the arbitrary-lifetime physical-slice API. - [x] Cover literal unaligned data, inert poisoned address metadata, invalid ranges and actual identity refusal. - [x] Add the standalone data-only diagnostic and native build profile; it does not start APs or attest execution. - [x] Update component documentation and the coordinated manual. - [x] Pass current-head component CI. - [x] Run coherent 1/2/4-vCPU producer-to-consumer data cases. Actual private-root/AP execution remains a separate requirement in #123.
erikinkinen added this to the Alpha 1 milestone 2026-11-13 14:41:06 +01:00
Replace Kernel firmware walks and invented peer IDs with the checked counted handoff snapshot. Validate actual BSP membership and uniqueness before publication, retain original preparation errors, and add a data-only native diagnostic without claiming AP execution or importing firmware read authority.
Give the standalone data diagnostic its required serial feature and shared scalar/exit helpers. Its native profile must compile independently of SMP and other diagnostic features.
Describe the checked BSP swap and full-width identities without implying a stable peer ordering that the test does not require.
Keep the component overview within the shared Markdown line length.
test: Reject the next unknown handoff minor
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 7m56s
9e82721fa8
Keep literal known-version fixtures while deriving the future-version refusal from the selected codec, so later compatible protocol additions do not turn the negative control into a valid input.
Author
Owner

The captured-topology data cases now pass in QEMU/OVMF with 1, 2 and 4 vCPUs, reporting IDs [0], [0, 1] and [0, 1, 2, 3]. The real dynamic image uses Kernel #141 (2283a382), Bootloader #36 (0776f2cc) and Integration #783. The topology producer and consumer module are byte-identical to this PR; the companion fixes the separately tracked runtime-symbol lookup in Bootloader #35. Each guest reaches Kernel entry, owned-stack preparation and PROCESSOR_TOPOLOGY:DATA_OK, then exits through the expected success path. This completes the topology data requirement and does not establish AP execution or private-root confinement.

The captured-topology data cases now pass in QEMU/OVMF with 1, 2 and 4 vCPUs, reporting IDs `[0]`, `[0, 1]` and `[0, 1, 2, 3]`. The real dynamic image uses Kernel #141 (`2283a382`), [Bootloader #36](https://git.erikinkinen.fi/erix/bootloader/pulls/36) (`0776f2cc`) and [Integration #783](https://git.erikinkinen.fi/erix/integration/pulls/783). The topology producer and consumer module are byte-identical to this PR; the companion fixes the separately tracked runtime-symbol lookup in [Bootloader #35](https://git.erikinkinen.fi/erix/bootloader/issues/35). Each guest reaches Kernel entry, owned-stack preparation and `PROCESSOR_TOPOLOGY:DATA_OK`, then exits through the expected success path. This completes the topology data requirement and does not establish AP execution or private-root confinement.
erikinkinen changed title from WIP: Consume captured processor topology without firmware reads to Consume captured processor topology without firmware reads 2026-11-13 16:31:12 +01:00
erikinkinen manually merged commit a7413076ff into feature/boot-kernel-v2-startup-intake 2026-11-13 20:52:04 +01:00
Sign in to join this conversation.
No description provided.