diff options
author | Zachary Amsden <zach@vmware.com> | 2006-09-30 23:29:30 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 00:39:33 -0700 |
commit | 3dc907951446b9317b1887223caa4e083390de9f (patch) | |
tree | addff9ee95e0caea5e895a1a674e49f38254fddd /mm/memory.c | |
parent | bd4c8ce41a2e2f0c5bf54343ab54e8e09faec021 (diff) | |
download | kernel-crypto-3dc907951446b9317b1887223caa4e083390de9f.tar.gz kernel-crypto-3dc907951446b9317b1887223caa4e083390de9f.tar.xz kernel-crypto-3dc907951446b9317b1887223caa4e083390de9f.zip |
[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>
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 160f5b503ea..7707187484c 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -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); } /* |