KVM: SVM: do not generate "external interrupt exit" if other exit is pending
authorGleb Natapov <gleb@redhat.com>
Mon, 20 Sep 2010 08:15:32 +0000 (10:15 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:56 +0000 (10:52 +0200)
commita0a07cd2c5fc8703db8a07287cdde3d29a286082
tree79730f314db290e0def664eb25f90dc630ae1c2f
parentf4f510508741680e423524c222f615276ca6222c
KVM: SVM: do not generate "external interrupt exit" if other exit is pending

Nested SVM checks for external interrupt after injecting nested exception.
In case there is external interrupt pending the code generates "external
interrupt exit" and overwrites previous exit info. If previously injected
exception already generated exit it will be lost.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Acked-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c