-
Notifications
You must be signed in to change notification settings - Fork 12
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
Page allocator enhancements #36
Conversation
…r internal logic to simplify the reasoning. Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
@lgaeher please have a look at these changes and let me know what you think. I went for another implementation of the constructor that we discussed offline, i.e., I am using a vector instead of slice. Would that be fine? We probably should use a sorted collection that stores page tokens due to our implementation of allocation (acquire_continous_pages_of_given_size). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The iteration over the vector in the constructor actually goes via slices, but I think that should be fine to handle, probably. It's definitely easier than dealing with the direct slice we had before.
I've left some minor comments, but otherwise looks good!
Co-authored-by: Lennard Gäher <33029057+lgaeher@users.noreply.github.com>
Co-authored-by: Lennard Gäher <33029057+lgaeher@users.noreply.github.com>
Co-authored-by: Lennard Gäher <33029057+lgaeher@users.noreply.github.com>
Co-authored-by: Lennard Gäher <33029057+lgaeher@users.noreply.github.com>
Co-authored-by: Lennard Gäher <33029057+lgaeher@users.noreply.github.com>
Co-authored-by: Lennard Gäher <33029057+lgaeher@users.noreply.github.com>
Co-authored-by: Lennard Gäher <33029057+lgaeher@users.noreply.github.com>
Co-authored-by: Lennard Gäher <33029057+lgaeher@users.noreply.github.com>
Co-authored-by: Lennard Gäher <33029057+lgaeher@users.noreply.github.com>
Co-authored-by: Lennard Gäher <33029057+lgaeher@users.noreply.github.com>
… are aligned to their size as required by the riscv spec Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
@lgaeher please have a look. The latest commit introduces the new algorithm for constructing page tokens over the given memory region. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
This PR aims to improve the quality of page allocator implementation. The eventual goal is to reach an implementation that can be formally verified using RefinedRust.
Current changes include: