Does INVLPG instruction or mprotect() affect the CPU cache state while invalidating TLB entries?
I am working on some code that involves L1/2/3 cache eviction & TLB entry invalidation. I’m trying to use the INVLPG
instruction to invalidate TLB entries and verify some results achieved by mprotect()
, but I’m doubtful about both INVLPG
and mprotect()
‘s effects on the cache hierarchy as that is of importance to me.