We have an user space program (real time application) which mmap's ~1.5 GB data space and 1 GB of program space and like to mark few pages (memory segments) as "Guarded" to avoid speculative fetching.
Is there any wrapper in Linux which helps to mark the pages -or- memory as guarded (_PAGE_GUARDED) i.e. G-PAGE ?
Processor : P4040
Linux : 18.104.22.168
Thanks in Advance.
Thanks Scott for the confirmation on this regard. I thought, there is some -hidden- protection mechanism implemented like PROT_GUARD which will help to mark these pages as "guarded" from application (userland) perspective.