Repository navigation
Add page table mapping tests for aarch64 - #2121
Open
Anurag-S1ngh wants to merge 1 commit into
Open
Anurag-S1ngh wants to merge 1 commit into
Anurag-S1ngh wants to merge 1 commit into
Conversation
Anurag-S1ngh
requested review from
andreiltd,
danbugs,
dblnz,
devigned,
jprendes,
jsturtevant,
ludfjig,
simongdavies,
squillace and
syntactically
as code owners
November 29, 2026 07:58
The amd64 page table code had unit tests for map(), virt_to_phys() and modify_mapping(), but the aarch64 implementation had none. Add a mock TableOps and mirror those tests, plus coverage for COW and zero-init mappings. Signed-off-by: Anurag Singh <anuragsingh2313@gmail.com>
Anurag-S1ngh
force-pushed
the
test/1131-aarch64-vmem-mapping-tests
branch
from
November 29, 2026 08:10
8cf63c2 to
2d7b6cc
Compare
This branch has not been deployed
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.
Summary
The aarch64 page table implementation had no tests, while the amd64 one has a suite covering
map,virt_to_phys,modify_mappingandmodify_ptes. This adds an in-memory mockTableOpsfor aarch64 and mirrors that coverage, including COW and zero-init mappings.Changes
testsmodule tosrc/hyperlight_common/src/arch/aarch64/vmem.rs.modify_mapping(downgrade and unmap),modify_ptesiteration, and address roundtrips.Testing
cargo test -p hyperlight-common --lib(389 tests pass on aarch64 macOS)cargo clippy -p hyperlight-common --all-targetscargo fmt -p hyperlight-common -- --checkCloses #1131