-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat(kernel/vm): allocate virtual memory spot #165
Merged
Merged
Conversation
This file contains 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
This change removes dependency on `alloc` from the loader, to archive this we removed the lz4 compression feature, use `xmas-elf` instead of `object` and don't use `panic-abort`. This chage makes the loader slimmer and helps with upcoming refactoring
With the previous change `panic-abort` has now become obsolete
In preparation for the virtmem overhaul, this change moves the elf mapping functionality from the `kmm` crate to the loader.
This change allows managing an existing page table through the pmm interface
This change adds another method to the `Once` primitive that allows fallible closures
This change allows `Riscv64Sv39` to print its page table when displayed using the `Display` trait
This change removes the admittedly overengineered `Arch` trait that caused viral generics throughout all dependents with simple functions and consts
…ical_memory_offset `
This change uses the `wavltree` lifecycle hooks to maintain an augmented version of the WAVLTree that supports more efficient gap search. This is inspired by a similar inspiration in the Zircon kernel and works by tracking the largest and smallest address of each nodes subtree, as well as the biggest gap in each subtree.
…of `root`/`root_mut` methods (#164)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Implement the `find_spot` method that searches the augmented wavltree of mappings for a suitable gap given a `Layout`. The resulting spot will be randomized, but left-leaning. Further method accepts an `entropy_bits` parameter that can be used to tune the sparseness of produced allocations. More consideration for this parameter can be found in the docs (docs/aslr.md)
JonasKruckenberg
force-pushed
the
feat/find-spot
branch
from
December 14, 2024 09:27
3b6019f
to
88a3941
Compare
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.
Implement the
find_spot
method that searches the augmented wavltree of mappings for a suitable gap given aLayout
. The resulting spot will be randomized, but left-leaning.Further method accepts an
entropy_bits
parameter that can be used to tune the sparseness of produced allocations. More consideration for this parameter can be found in the docs (docs/aslr.md)Note this PR builds on #158