-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmu: do not free pages before flushing remote tlbs during unpopulate
Page cannot be freed before remote tlbs are flushed since if remote cpu has the page in its tlb and the page is reallocated for some other purposes remote cpu can still access the page through tlb and corrupt its content. Think about two threads running on two different cpus: first one writes to a virtual address constantly and second unmaps the virtual address. Physical page, virtual address is mapped to, cannot be freed before both cpus tlb are flushed. Signed-off-by: Gleb Natapov <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
- Loading branch information
1 parent
325a7b8
commit 73a97f1
Showing
1 changed file
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters