Address agnostic walking - #316
Merged
Merged
Conversation
Add a new marker types for a guest virutal addresses.
Introduce a `Translatable` trait which associates a virtual address kind with the physical kind it translates into (Virtual -> Physical, GuestVirtual -> GuestPhysical). Parametrise `PageTableMapper` over the physical address kind, defaulting to `Physical`.
Add `to_untyped` for guest address-types.
hexagonal-sun
force-pushed
the
feature/address-agnostic-walking
branch
from
August 21, 2026 19:25
ecf90c9 to
b49ac16
Compare
Ensure the function pointers to the initcalls are properly aligned in the binary. If the pointers aren't properly aligned we fault very early in kernel boot, prior to the console being inialised.
hexagonal-sun
force-pushed
the
feature/address-agnostic-walking
branch
from
August 21, 2026 20:02
74f6b53 to
2d8fcde
Compare
The latest Rust nightly (1.100.0-nightly 2026-08-20) elides the unused ptr::read of an invalid pointer even in debug builds, so the segfault children in test_segfault_read never faulted and exited normally, failing the WIFSIGNALED assertion in CI. Use read_volatile/write_volatile (and black_box the result) so the compiler cannot remove the faulting accesses. Also make the page-touch in test_mincore volatile for the same reason.
hexagonal-sun
force-pushed
the
feature/address-agnostic-walking
branch
from
August 21, 2026 20:26
2d8fcde to
5cedc97
Compare
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.
No description provided.