]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48546fcccc0d1972e7bd8817a2be2c8f226a116b
tree396cf7dd64c7f38b7c50250e545b46b29e4134cc
parentf5e928a482f9662a043d8b1e74929be220fea337
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