summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-08-26 17:31:31 +0300
committerAvi Kivity <avi@qumranet.com>2008-10-15 10:15:23 +0200
commitd657c7335b97d746aa6123c56504b46c20e37df3 (patch)
tree52f6140cd6fa33cfab06ad867f640a023151907d /virt
parentacee3c04e8208c17aad1baff99baa68d71640a19 (diff)
downloadlinux-stable-d657c7335b97d746aa6123c56504b46c20e37df3.tar.gz
linux-stable-d657c7335b97d746aa6123c56504b46c20e37df3.tar.bz2
linux-stable-d657c7335b97d746aa6123c56504b46c20e37df3.zip
KVM: Don't call get_user_pages(.force = 1)
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>
Diffstat (limited to 'virt')
-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 0309571fcb20..de3b029f6adf 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -734,7 +734,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)) {