KVM paravirt: Handle async PF in non preemptable context
authorGleb Natapov <gleb@redhat.com>
Thu, 14 Oct 2010 09:22:54 +0000 (11:22 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:23:19 +0000 (11:23 +0200)
commit6c047cd982f944fa63b2d96de2a06463d113f9fa
tree33ea24341320d9adda2d2d3c0314a7244bac7862
parent7c90705bf2a373aa238661bdb6446f27299ef489
KVM paravirt: Handle async PF in non preemptable context

If async page fault is received by idle task or when preemp_count is
not zero guest cannot reschedule, so do sti; hlt and wait for page to be
ready. vcpu can still process interrupts while it waits for the page to
be ready.

Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kernel/kvm.c