KVM: x86: Move #UD injection for failed emulation into emulation code
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 27 Aug 2019 21:40:33 +0000 (14:40 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2019 12:31:01 +0000 (14:31 +0200)
commitc83fad65e2cae1aa570a519b33e8ebf00f6e7227
tree03a35fb64cc436d1a8018abd592420c42b651471
parentb4000606205959e6cfe1fd3a71c490267ff23506
KVM: x86: Move #UD injection for failed emulation into emulation code

Immediately inject a #UD and return EMULATE done if emulation fails when
handling an intercepted #UD.  This helps pave the way for removing
EMULATE_FAIL altogether.

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