KVM: emulator: Do not fail on emulation of undefined opcode
authorGleb Natapov <gleb@redhat.com>
Thu, 11 Apr 2013 09:30:01 +0000 (12:30 +0300)
committerGleb Natapov <gleb@redhat.com>
Sun, 14 Apr 2013 06:44:17 +0000 (09:44 +0300)
commit1146a78b8d88fc0e0ca2ab9c549821242e289432
tree396cf7dd64c7f38b7c50250e545b46b29e4134cc
parent991eebf9f8e523e7ff1e4d31ac80641582b2e57a
KVM: emulator: Do not fail on emulation of undefined opcode

Emulation of undefined opcode should inject #UD instead of causing
emulation failure. Do that by moving Undefined flag check to emulation
stage and injection #UD there.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/emulate.c