Skip to content

Address agnostic walking - #316

Merged
hexagonal-sun merged 6 commits into
masterfrom
feature/address-agnostic-walking
Aug 21, 2026
Merged

Address agnostic walking#316
hexagonal-sun merged 6 commits into
masterfrom
feature/address-agnostic-walking

Conversation

@hexagonal-sun

Copy link
Copy Markdown
Owner

No description provided.

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
hexagonal-sun force-pushed the feature/address-agnostic-walking branch from ecf90c9 to b49ac16 Compare August 21, 2026 19:25
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
hexagonal-sun force-pushed the feature/address-agnostic-walking branch from 74f6b53 to 2d8fcde Compare August 21, 2026 20:02
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
hexagonal-sun force-pushed the feature/address-agnostic-walking branch from 2d8fcde to 5cedc97 Compare August 21, 2026 20:26
@hexagonal-sun
hexagonal-sun merged commit dbbf6bb into master Aug 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant