rust-osdev / rust-osdev/x86_64
Page Table Visitors
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 939
- Forks
- 158
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 3
Description
We previously had some discussion of using some sort of Visitor pattern to visit and update page tables. I got some time to play around with it a bit today. I think it is promising, but there are some unresolved API questions and some issues that I don't know how to deal with.
Unresolved Problem:
- The visitor doesn't know where in virtual memory a page table is. We need some generic and ergonomic way to figure out this information for
Visitorsto really work. For now, I have left it abstracted as theVisit::get_pagemethod, which is implemented by eachVisitoras needed.
Unresolved questions:
- Should we have
visit_huge_page<S: Size>(...)? Is this too fine-grained?
Here is a rough prototype. It doesn't work or compile, but it should give a rough idea: https://github.com/rust-osdev/x86_64/compare/master...mark-i-m:visitor?expand=1
cc #32 #96 #112 #113 #114
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked visitor prototype comparison and the current Visit::get_page abstraction, then read the related issues #32, #96, #112, #113, and #114. Done means the unresolved page-table location and huge-page visitation API questions have a decided design and a compiling implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100