]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGleb Natapov <gleb@redhat.com>
Tue, 15 Oct 2013 10:43:37 +0000 (13:43 +0300)
commit4e4b57ad81fee212da646d7bfe252b20b609336a
treebe15cad31bc5701570a571b3be04e299bb4ac547
parentfd025ef9c449c52e383c880ceb07852ec392c836
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>
arch/x86/kvm/x86.c
include/linux/kvm_host.h
include/trace/events/kvm.h
virt/kvm/async_pf.c