I know that changing CR3's value invalidates all TLB entries.
What about disabling and re-enabling paging ? Does this also invalidates all TLB entries ? (I guess it does)
Which one takes the less time ?
TLB flush
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:TLB flush
probably the same amount of time. What costs is the fact the TLB is empty (requiring additionnal cycles to re-fill it on demand), not the emptying process itself (basically, it asserts a signal line for one cycle and all the "valid" bits of all the entries are cleared simultaneously ...)
Re:TLB flush
In theory, they're pretty much the same, except for the first one not switching between cpu modes twice. I guess it's not much slower, but it wouldn't be faster in any case.pini wrote: I know that changing CR3's value invalidates all TLB entries.
What about disabling and re-enabling paging ? Does this also invalidates all TLB entries ? (I guess it does)
Which one takes the less time ?