KVM: inject #UD if instruction emulation fails and exit to userspace
Do not kill VM when instruction emulation fails. Inject #UD and report failure to userspace instead. Userspace may choose to reenter guest if vcpu is in userspace (cpl == 3) in which case guest OS will kill offending process and continue running. Signed-off-by:Gleb Natapov <gleb@redhat.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
Showing
- arch/x86/include/asm/kvm_host.h 0 additions, 1 deletionarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/mmu.c 1 addition, 4 deletionsarch/x86/kvm/mmu.c
- arch/x86/kvm/svm.c 3 additions, 7 deletionsarch/x86/kvm/svm.c
- arch/x86/kvm/vmx.c 4 additions, 24 deletionsarch/x86/kvm/vmx.c
- arch/x86/kvm/x86.c 18 additions, 25 deletionsarch/x86/kvm/x86.c
Loading
Please register or sign in to comment