KVM: Allocate guest memory as MAP_PRIVATE, not MAP_SHARED
authorAvi Kivity <avi@qumranet.com>
Thu, 6 Aug 2009 17:39:44 +0000 (14:39 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:17:01 +0000 (20:17 -0700)
commitf897f01e79c99ec8577ed6bb6c9bec845747dc3c
treedf3db5592ee2d8ce4fbc9c39b4bddb370d0972f8
parent838c160be4225b74a1fdd6e549df272e3953ebd8
KVM: Allocate guest memory as MAP_PRIVATE, not MAP_SHARED

(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