]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6df5a6ecad0815ce7d24ad815279d846f1107d8b
tree03a35fb64cc436d1a8018abd592420c42b651471
parente3b1ecd997fc136580c3f547171eb4ae92a31f3b
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