]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: avoid running vmx_handle_exit_irqoff in case of emulation
authorMaxim Levitsky <mlevitsk@redhat.com>
Thu, 26 Aug 2021 09:57:49 +0000 (12:57 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Sep 2021 10:00:27 +0000 (06:00 -0400)
commitf5c918b427406a58b2e50fceb4d7cda4a402b5bf
tree1db8da85081191da368b0d57812ec26f638be512
parent8276afa6dc256ce6ae9e6581ca7525db7a7f813f
KVM: VMX: avoid running vmx_handle_exit_irqoff in case of emulation

If we are emulating an invalid guest state, we don't have a correct
exit reason, and thus we shouldn't do anything in this function.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210826095750.1650467-2-mlevitsk@redhat.com>
Cc: stable@vger.kernel.org
Fixes: 2aa49e6e5271 ("KVM: VMX: Handle NMIs, #MCs and async #PFs in common irqs-disabled fn", 2019-06-18)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c