[PATCH] paravirt: remove read hazard from cow
We don't want to read PTEs directly like this after they have been modified, as a lazy MMU implementation of direct page tables may not have written the updated PTE back to memory yet. Signed-off-by: Zachary Amsden <zach@vmware.com> Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
bd4c8ce41a
commit
3dc9079514
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ copy_one_pte(struct mm_struct *dst_mm, struct mm_struct *src_mm,
|
|||
*/
|
||||
if (is_cow_mapping(vm_flags)) {
|
||||
ptep_set_wrprotect(src_mm, addr, src_pte);
|
||||
pte = *src_pte;
|
||||
pte = pte_wrprotect(pte);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue