]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Do not generate #DF if #PF happens during exception delivery into L2
authorGleb Natapov <gleb@redhat.com>
Wed, 25 Sep 2013 09:51:36 +0000 (12:51 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 30 Sep 2013 07:14:25 +0000 (09:14 +0200)
commit69da3b956d574505442cf6bfb788595a19f6f958
tree39cd73b295de323467da374f2b06e443e0f89f7d
parent83d39addc0bb2dccb0c25c855916599ca8d780af
KVM: nVMX: Do not generate #DF if #PF happens during exception delivery into L2

If #PF happens during delivery of an exception into L2 and L1 also do
not have the page mapped in its shadow page table then L0 needs to
generate vmexit to L2 with original event in IDT_VECTORING_INFO, but
current code combines both exception and generates #DF instead. Fix that
by providing nVMX specific function to handle page faults during page
table walk that handles this case correctly.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c