KVM: nSVM: Report interrupts as allowed when in L2 and exit-on-interrupt is set
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Apr 2020 22:02:45 +0000 (18:02 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 May 2020 16:14:44 +0000 (12:14 -0400)
commitfc6f7c03ad80693c953d5cdacfad41f174289531
tree0eae46385cc52fa46f7ec48ea109e60c39db9214
parent1cd2f0b0dd9218fd11ced9ac97237f0c9517f49e
KVM: nSVM: Report interrupts as allowed when in L2 and exit-on-interrupt is set

Report interrupts as allowed when the vCPU is in L2 and L2 is being run with
exit-on-interrupts enabled and EFLAGS.IF=1 (either on the host or on the guest
according to VINTR).  Interrupts are always unblocked from L1's perspective
in this case.

While moving nested_exit_on_intr to svm.h, use INTERCEPT_INTR properly instead
of assuming it's zero (which it is of course).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h