KVM: Handle async PF in a guest.
authorGleb Natapov <gleb@redhat.com>
Thu, 14 Oct 2010 09:22:52 +0000 (11:22 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:23:16 +0000 (11:23 +0200)
commit631bc4878220932fe67fc46fc7cf7cccdb1ec597
treeac588182d02308a004d45a9c3ae6834d096e263d
parentfd10cde9294f73eeccbc16f3fec1ae6cde7b800c
KVM: Handle async PF in a guest.

When async PF capability is detected hook up special page fault handler
that will handle async page fault events and bypass other page faults to
regular page fault handler. Also add async PF handling to nested SVM
emulation. Async PF always generates exit to L1 where vcpu thread will
be scheduled out until page is available.

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/include/asm/kvm_para.h
arch/x86/include/asm/traps.h
arch/x86/kernel/entry_32.S
arch/x86/kernel/entry_64.S
arch/x86/kernel/kvm.c
arch/x86/kvm/svm.c