]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/kvm/vmx.c
KVM: nVMX: Do not put exception that caused vmexit to IDT_VECTORING_INFO
authorGleb Natapov <gleb@redhat.com>
Wed, 25 Sep 2013 09:51:34 +0000 (12:51 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 30 Sep 2013 07:14:24 +0000 (09:14 +0200)
commit851eb6677cb14f7fada8735041b12f5add0c247e
treeb7d34edf7b6d61c93c48fdedadbdad09c751d53f
parente0b890d35cdff506b72129b55a166d22fc9bfa64
KVM: nVMX: Do not put exception that caused vmexit to IDT_VECTORING_INFO

If an exception causes vmexit directly it should not be reported in
IDT_VECTORING_INFO during the exit. For that we need to be able to
distinguish between exception that is injected into nested VM and one that
is reinjected because its delivery failed. Fortunately we already have
mechanism to do so for nested SVM, so here we just use correct function
to requeue exceptions and make sure that reinjected exception is not
moved to IDT_VECTORING_INFO during vmexit emulation and not re-checked
for interception during delivery.

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