]> git.baikalelectronics.ru Git - kernel.git/commit
mm: gup: kvm use get_user_pages_unlocked
authorAndrea Arcangeli <aarcange@redhat.com>
Wed, 11 Feb 2015 23:27:28 +0000 (15:27 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Feb 2015 01:06:05 +0000 (17:06 -0800)
commitf12b0f707014384bdd8c5940eba95d6d1a4df2ec
tree6f660902ba6ae3c834182e15165143b9a57b2477
parentb13bb392edcabd46ce995b9c76a8329e48fb89b0
mm: gup: kvm use get_user_pages_unlocked

Use the more generic get_user_pages_unlocked which has the additional
benefit of passing FAULT_FLAG_ALLOW_RETRY at the very first page fault
(which allows the first page fault in an unmapped area to be always able
to block indefinitely by being allowed to release the mmap_sem).

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Andres Lagar-Cavilla <andreslc@google.com>
Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Peter Feiner <pfeiner@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kvm_host.h
virt/kvm/async_pf.c
virt/kvm/kvm_main.c