KernelTestFramework / ktf

Kernel Test Framework
BSD 2-Clause "Simplified" License
140 stars 18 forks source link

[Feature] Add support for global page table entries #318

Closed wipawel closed 11 months ago

wipawel commented 11 months ago

Is your feature request related to a problem? Please describe.

Certain memory areas are common for all CPUs and all contexts (e.g. kernel tasks, user tasks, etc): tmp_mfn_map, framebuffer or vga area, kernel image etc. Marking them as global has a performance benefit (although irrelevant for KTF purposes) but also help programmatically find such memory pages for page table deduplication and enables new tests.

Describe the solution you'd like Add function enabling global entries via CR4.PGE and add a kernel cmdline parameter to control enablement of the feature.