]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Enable async page fault processing
authorGleb Natapov <gleb@redhat.com>
Tue, 1 Feb 2011 11:21:47 +0000 (13:21 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 6 Apr 2011 10:15:55 +0000 (13:15 +0300)
commitd338c9249ccb7b074a642705ae3f76b42d7f0dad
treedf3892f624910d2a6b210e30549a6a82a79e5474
parent87cf24912a4a7088e371a5283eca8de916280983
KVM: Enable async page fault processing

If asynchronous hva_to_pfn() is requested call GUP with FOLL_NOWAIT to
avoid sleeping on IO. Check for hwpoison is done at the same time,
otherwise check_user_page_hwpoison() will call GUP again and will put
vcpu to sleep.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/kvm_main.c