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/virtualrange: introduce the VRangeAlloc type #474

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

00xc
Copy link
Member

@00xc 00xc commented Sep 30, 2024

Introduce a new smart pointer type for virtual range allocations. The new type automatically frees the virtual range from the correct allocator on drop. This significantly simplifies the logic for the PerCPUPageMappingGuard methods.

Introduce a new smart pointer type for virtual range allocations. The
new type automatically frees the virtual range from the correct
allocator on drop. This significantly simplifies the logic for the
PerCPUPageMappingGuard methods.

Signed-off-by: Carlos López <[email protected]>
Zip two iterators instead of manually indexing into a slice in
PerCPUPageMappingGuard::create_4k_pages(), as it is more conventional
Rust.

Signed-off-by: Carlos López <[email protected]>
@joergroedel joergroedel merged commit 15bc1d1 into coconut-svsm:main Oct 2, 2024
3 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