]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Inject asynchronous page fault into a PV guest if page is swapped out.
authorGleb Natapov <gleb@redhat.com>
Thu, 14 Oct 2010 09:22:53 +0000 (11:22 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:23:17 +0000 (11:23 +0200)
commit805b093c4392abf862cfea1244768ab7e198f3c8
treed3d00b4413b0d33254d53bbb3285be82444494d9
parent64eeed90e03deea22cad3eff04e555c3b319884b
KVM: Inject asynchronous page fault into a PV guest if page is swapped out.

Send async page fault to a PV guest if it accesses swapped out memory.
Guest will choose another task to run upon receiving the fault.

Allow async page fault injection only when guest is in user mode since
otherwise guest may be in non-sleepable context and will not be able
to reschedule.

Vcpu will be halted if guest will fault on the same page again or if
vcpu executes kernel code.

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_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c
include/trace/events/kvm.h
virt/kvm/async_pf.c