This PR refines our Extended Page Tables (EPT) setup, moving away from the initial broad pre-allocation of Page Tables (Pt) for every Page Directory (Pd) entry (option A) to a better allocation model (option B). This adjustment, coupled with the introduction of split_2mb_to_4kb, remap_gpa_to_hpa, and modify_page_permissions functions, really helps boost the hypervisor's efficiency and flexibility.
Description:
This PR refines our Extended Page Tables (EPT) setup, moving away from the initial broad pre-allocation of Page Tables (Pt) for every Page Directory (Pd) entry (option A) to a better allocation model (option B). This adjustment, coupled with the introduction of
split_2mb_to_4kb
,remap_gpa_to_hpa
, andmodify_page_permissions
functions, really helps boost the hypervisor's efficiency and flexibility.Option A:
Option B:
Option C:
Key Changes:
Pt
for eachPd
(option A) to a targeted allocation strategy (option B), optimizing memory usage.split_2mb_to_4kb
,remap_gpa_to_hpa
, andmodify_page_permissions
functions to enable fine-grained memory control and manipulation.Benefits:
Pt
allocations.