Skip to content

Commit

Permalink
KVM: Don't call get_user_pages(.force = 1)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
avikivity committed Oct 15, 2008
1 parent acee3c0 commit d657c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit d657c73

Please sign in to comment.