coconut-svsm / svsm

COCONUT-SVSM
MIT License
122 stars 42 forks source link

mm/virtualrange: introduce the `VRangeAlloc` type #474

Closed 00xc closed 1 month ago

00xc commented 1 month ago

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.