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

mm/pgtable: minor cleanups #147

Merged
merged 4 commits into from
Nov 20, 2023
Merged

mm/pgtable: minor cleanups #147

merged 4 commits into from
Nov 20, 2023

Conversation

00xc
Copy link
Member

@00xc 00xc commented Oct 30, 2023

Minor code quality improvements for the pagetable code.

00xc added 4 commits October 27, 2023 15:10
Construct different predefined sets of page table entry flags from the
PTEntryFlags type instead of the PageTable type.

Signed-off-by: Carlos López <[email protected]>
When allocating page table entries we simply need to know whether the
allocation corresponds to a regular or huge page, so use the PageSize
enum instead of a usize.

Signed-off-by: Carlos López <[email protected]>
PTEntry::set() already fully sets the entry, so there's no need to
clear it beforehand.

Signed-off-by: Carlos López <[email protected]>
Attempting to unmap unmapped memory usually indicates something went
wrong in the memory management subsystem, so log it as an error.

Signed-off-by: Carlos López <[email protected]>
@joergroedel joergroedel merged commit 641952b into coconut-svsm:main Nov 20, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants