summaryrefslogtreecommitdiff
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2009-08-06 14:39:45 -0300
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-08 20:17:03 -0700
commit2b52d454ea2217f9422aee3847aa4678e93fa9e0 (patch)
tree835a460b3f481f4450c14433f3e79d3515cde7da /virt/kvm/kvm_main.c
parentf897f01e79c99ec8577ed6bb6c9bec845747dc3c (diff)
downloadlwn-2b52d454ea2217f9422aee3847aa4678e93fa9e0.tar.gz
lwn-2b52d454ea2217f9422aee3847aa4678e93fa9e0.zip
KVM: Don't call get_user_pages(.force = 1)
(cherry picked from commit d657c7335b97d746aa6123c56504b46c20e37df3) This is esoteric and only needed to break COW on MAP_SHARED mappings. Since KVM no longer does these sorts of mappings, breaking COW on them is no longer necessary. Signed-off-by: Avi Kivity <avi@qumranet.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 7dd9b0b85e4e..46474af54763 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -726,7 +726,7 @@ pfn_t gfn_to_pfn(struct kvm *kvm, gfn_t gfn)
return page_to_pfn(bad_page);
}
- npages = get_user_pages(current, current->mm, addr, 1, 1, 1, page,
+ npages = get_user_pages(current, current->mm, addr, 1, 1, 0, page,
NULL);
if (unlikely(npages != 1)) {