diff options
author | Avi Kivity <avi@qumranet.com> | 2008-08-26 10:31:31 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-10-15 04:15:23 -0400 |
commit | d657c7335b97d746aa6123c56504b46c20e37df3 (patch) | |
tree | 52f6140cd6fa33cfab06ad867f640a023151907d /virt/kvm/kvm_main.c | |
parent | acee3c04e8208c17aad1baff99baa68d71640a19 (diff) |
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/kvm/kvm_main.c')
-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 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) | |||
734 | return page_to_pfn(bad_page); | 734 | return page_to_pfn(bad_page); |
735 | } | 735 | } |
736 | 736 | ||
737 | npages = get_user_pages(current, current->mm, addr, 1, 1, 1, page, | 737 | npages = get_user_pages(current, current->mm, addr, 1, 1, 0, page, |
738 | NULL); | 738 | NULL); |
739 | 739 | ||
740 | if (unlikely(npages != 1)) { | 740 | if (unlikely(npages != 1)) { |