Skip to content
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

Paging: Only map required areas #426

Open
mkroening opened this issue Nov 3, 2022 · 0 comments
Open

Paging: Only map required areas #426

mkroening opened this issue Nov 3, 2022 · 0 comments

Comments

@mkroening
Copy link
Member

mkroening commented Nov 3, 2022

Uhyve identity-maps the first Gibibyte of memory (512 page table entries * 2MiB pages)
We now unmap all memory after the kernel image, so that we can remap it ourselves later for the heap.
Ideally, uhyve would only map as much memory as necessary, but this requires a hermit-entry ABI jump.

https://github.com/hermitcore/libhermit-rs/blob/a86a28e33ffb1655b54d77ff4c301fb24a70b96f/src/arch/x86_64/mm/paging.rs#L219

mkroening added a commit to mkroening/libhermit-rs that referenced this issue Nov 3, 2022
mkroening added a commit to mkroening/libhermit-rs that referenced this issue Nov 17, 2022
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

No branches or pull requests

1 participant