]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Handle emulation failure directly in kvm_task_switch()
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 27 Aug 2019 21:40:35 +0000 (14:40 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2019 12:31:13 +0000 (14:31 +0200)
commitba9e61221e5deeb09bbffd751cc01ff9a2b5d097
treea34c27eaa189e808b3d640e3cb31306cb1494b5b
parentdf875ec4c54991d197388f3a08c987320a07c913
KVM: x86: Handle emulation failure directly in kvm_task_switch()

Consolidate the reporting of emulation failure into kvm_task_switch()
so that it can return EMULATE_USER_EXIT.  This helps pave the way for
removing EMULATE_FAIL altogether.

This also fixes a theoretical bug where task switch interception could
suppress an EMULATE_USER_EXIT return.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c