diff options
author | Avi Kivity <avi@qumranet.com> | 2009-08-06 14:39:45 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-08 20:17:03 -0700 |
commit | 2b52d454ea2217f9422aee3847aa4678e93fa9e0 (patch) | |
tree | 835a460b3f481f4450c14433f3e79d3515cde7da /virt | |
parent | f897f01e79c99ec8577ed6bb6c9bec845747dc3c (diff) |
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')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
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)) { |