git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
838c160
)
KVM: Allocate guest memory as MAP_PRIVATE, not MAP_SHARED
author
Avi Kivity
<avi@qumranet.com>
Thu, 6 Aug 2009 17:39:44 +0000
(14:39 -0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 9 Sep 2009 03:17:01 +0000
(20:17 -0700)
(cherry picked from commit
acee3c04e8208c17aad1baff99baa68d71640a19
)
There is no reason to share internal memory slots with fork()ed instances.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/x86.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index
a29b440
..
8d45d35
100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-4003,7
+4003,7
@@
int kvm_arch_set_memory_region(struct kvm *kvm,
userspace_addr = do_mmap(NULL, 0,
npages * PAGE_SIZE,
PROT_READ | PROT_WRITE,
- MAP_
SHARED
| MAP_ANONYMOUS,
+ MAP_
PRIVATE
| MAP_ANONYMOUS,
0);
up_write(¤t->mm->mmap_sem);