WIP: Retain original runtime-image sources in private roots #146
Draft
erikinkinen
wants to merge 4 commits from
feature/kernel-runtime-image-sources into feature/ap-supervisor-memory-policy
pull from: feature/kernel-runtime-image-sources
merge into: erix:feature/ap-supervisor-memory-policy
erix:main
erix:feature/public-ci-source-graph
erix:feature/terminal-peer-flow
erix:feature/ci-repository-catalog-merge-ready-3ff6bd6a
erix:feature/documentation-lint-repair-merge-ready-c029e817
erix:feature/boot-kernel-v2-startup-intake
erix:feature/ap-supervisor-memory-policy
erix:feature/native-private-root-activation
erix:feature/retained-processor-topology-intake
erix:feature/native-boot-source-reservations
erix:feature/native-registered-allocation-backing
erix:feature/native-ipc-custody-transport
erix:feature/native-completion-publication
erix:feature/native-control-publication-custody
erix:feature/native-call-response-loans
erix:feature/native-capability-exclusion
erix:feature/native-reply-acceptance
erix:feature/documentation-lint-repair
erix:feature/ci-repository-catalog
erix:feature/counted-boot-object-names
erix:feature/kernel-runtime-test-matrix
erix:feature/kernel-source-governance
erix:feature/physical-uart-line-configuration
erix:feature/calibrated-time-resolution
erix:feature/hardware-timed-uart-break
erix:feature/process-bound-uart-transients
erix:feature/native-cpu-local-execution
erix:feature/native-oir3-result-budget-claims
erix:feature/native-query-layout-controls
erix:feature/native-pending-reply-context
erix:feature/native-rendezvous-custody-controls
erix:feature/opt-in-process-exit-tracing
erix:feature/register-only-syscall-return-abi
erix:feature/native-execution-departure-and-retirement
erix:feature/native-invocation-diagnostics
erix:feature/native-member-exit-observation
erix:feature/ci-source-acquisition
erix:feature/native-terminal-receipt-deadlines
erix:feature/native-thread-lifecycle
erix:feature/owned-activity-and-deadline-waits
erix:feature/generation-bound-process-termination
erix:feature/ap-scheduler-deadline-observation
erix:feature/reserved-heap-region-core
erix:feature/owned-private-page-tables
erix:feature/registered-scheduler-mapping-ranges
erix:feature/kernel-owned-initial-resume-frames
erix:feature/owned-supervisor-baseline
erix:feature/page-walk-huge-leaf-geometry
erix:feature/grant-backed-frame-protection
erix:feature/hardware-frame-access-preservation
erix:feature/current-vspace-map-authority
erix:feature/ordinary-frame-map-domain
erix:feature/unpublished-table-allocation-custody
erix:feature/declared-native-request-mappings
erix:feature/native-table-bit-provenance
erix:feature/acknowledged-terminal-cpu-accounting
erix:feature/explicit-installer-grant-rights
erix:feature/native-child-release-recovery-controls
erix:feature/native-terminal-event-refusal-controls
erix:feature/native-receiver-budgets
erix:feature/owned-supervisor-child-lifetimes
erix:feature/terminal-control-reply-custody
erix:feature/caller-local-grant-relocation
erix:feature/process-generations-and-accounting
erix:feature/terminal-process-identity-custody
erix:feature/exact-vspace-teardown
erix:feature/owned-syscall-resume-capture
erix:feature/native-diagnostic-observation
erix:feature/owned-host-startup-stack-fixtures
erix:feature/terminal-exception-frame-boundaries
erix:feature/native-capability-query-context
erix:feature/native-entry-direction-custody
erix:feature/frame-mapping-permission-boundaries
erix:feature/grant-bound-process-staging
erix:feature/endpoint-transfer-preflight
erix:feature/native-invocation-transport
erix:feature/cspace-free-slot-index
erix:feature/native-syscall-entry-custody
erix:feature/managed-frame-lookup-cache
erix:feature/process-bound-local-revokers
erix:feature/hosted-fixture-isolation
erix:feature/posix-compat
erix:feature/native-cli
erix:feature/phase-4-audit
erix:feature/dynlink
erix:feature/program-loader
erix:feature/e2fs-fat
erix:feature/block-devices
erix:feature/vfs
erix:feature/centralized-process-authority
No reviewers
Labels
Clear labels
alpha-1
EriX Alpha 1 release acceptance
bug
Something is not working
ci
docs
duplicate
This issue or pull request already exists
enhancement
New feature
help wanted
Need some help
invalid
Something is wrong
performance
Measured performance profiling, bottleneck analysis, and regression budgets.
phase-6
Phase 6: POSIX compatibility, full EriX self-hosting, and its required audits and validation.
question
More information is needed
refactor
Code cleanup, removal of obsolete paths, and structural improvements preserving behavior.
security
wontfix
This won't be fixed
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
erix/kernel!146
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/kernel-runtime-image-sources"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary and rationale
Retain the actual loaded Kernel and dependency allocations through private-root preparation and CPU occupations. Build fresh supervisor tables from exact segment pages instead of copying arbitrary supervisor leaves.
Tracking and scope
Addresses #143; builds on #144 and #141. Companion to LibHandoff #13, Bootloader #34 and the runtime-image contract and native source-lifetime manual. Native activation remains tracked by #123.
Architecture, authority and failure behavior
The original unsafe one-shot handover supplies the allocation group; descriptors, hashes, reservations and observed leaves cannot create it. Whole allocations remain occupied while only compatible segment-page unions are mapped. Each root retains actual source loans and the processor memory policy. The scratch window and xAPIC retain distinct original loans. File retirement preserves independently retained readers without adding Kernel aliases.
Framebuffer conversion fails closed while the original renderer owns its view; all-root and CPU withdrawal must precede that separate lifetime transfer.
Validation evidence
Review checklist
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.