KernelTestFramework / ktf

Kernel Test Framework
BSD 2-Clause "Simplified" License
139 stars 20 forks source link

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

Closed wipawel closed 1 year ago

wipawel commented 1 year 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.