]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Remove specialized handling of unexpected exit-reasons
authorLiran Alon <liran.alon@oracle.com>
Sun, 29 Sep 2019 14:50:18 +0000 (17:50 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 11:31:20 +0000 (13:31 +0200)
commit6d95dd912dd6dd0d801878bbcd406d07a44a7b36
tree7296802a38806515dd867985207503e804c844d0
parenta3a4f5860268e4a49ac41fc1cddfaaabaa8852b5
KVM: VMX: Remove specialized handling of unexpected exit-reasons

Commit 76d810abd72f ("KVM: vmx: Introduce handle_unexpected_vmexit
and handle WAITPKG vmexit") introduced specialized handling of
specific exit-reasons that should not be raised by CPU because
KVM configures VMCS such that they should never be raised.

However, since commit 15f69708cd6c ("KVM: x86: Return to userspace
with internal error on unexpected exit reason"), VMX & SVM
exit handlers were modified to generically handle all unexpected
exit-reasons by returning to userspace with internal error.

Therefore, there is no need for specialized handling of specific
unexpected exit-reasons (This specialized handling also introduced
inconsistency for these exit-reasons to silently skip guest instruction
instead of return to userspace on internal-error).

Fixes: 76d810abd72f ("KVM: vmx: Introduce handle_unexpected_vmexit and handle WAITPKG vmexit")
Signed-off-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c