Does TLB need to be writeback to memory?
Posted: Sat Sep 19, 2020 1:49 am
I know if I change the page table, I need to invalidate TLB to make the changes visible to CPU. But I don't know if TLB has a write-back mechanism. If the CPU writes to a linear address, does it set the dirty bit in TLB entry and wait for a writeback or it changes PTE directly?
Intel Manual says:
Intel Manual says:
Does this means the dirty bit is set on PTE directly?Whenever there is a write to a linear address, the processor sets the dirty flag (if it is not already set) in the pagingstructure
entry that identifies the final physical address for the linear address (either a PTE or a paging-structure
entry in which the PS flag is 1).