KVM: Drop FOLL_GET in GUP when doing async page fault
authorchai wen <chaiw.fnst@cn.fujitsu.com>
Mon, 14 Oct 2013 14:22:33 +0000 (22:22 +0800)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:12 +0000 (17:18 +0200)
commit0a2e6af7befb4c0336f2c789d172bbb5438aec72
treeb471207e0cc432efa2397fa05442bc3681ae8a63
parent1feff9299a9b7b1f137166f062772cd2044c7cbb
KVM: Drop FOLL_GET in GUP when doing async page fault

Page pinning is not mandatory in kvm async page fault processing since
after async page fault event is delivered to a guest it accesses page once
again and does its own GUP.  Drop the FOLL_GET flag in GUP in async_pf
code, and do some simplifying in check/clear processing.

Suggested-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Gu zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: chai wen <chaiw.fnst@cn.fujitsu.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
(cherry picked from commit f2e106692d5189303997ad7b96de8d8123aa5613)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/x86/kvm/x86.c
include/linux/kvm_host.h
include/trace/events/kvm.h
virt/kvm/async_pf.c