]> 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)
commit924f561179083e0adcea332cb13a7fa29237b10a
tree39cd73b295de323467da374f2b06e443e0f89f7d
parent3f8fc8134c9dc994527d3779d8d6a05651442a97
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