OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abb9e0b
)
KVM: Allocate guest memory as MAP_PRIVATE, not MAP_SHARED
author
Avi Kivity
<avi@qumranet.com>
Tue, 26 Aug 2008 14:22:47 +0000
(17:22 +0300)
committer
Avi Kivity
<avi@qumranet.com>
Wed, 15 Oct 2008 08:15:23 +0000
(10:15 +0200)
There is no reason to share internal memory slots with fork()ed instances.
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index
bfc7c33
..
675d010
100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-4296,7
+4296,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);